Skip to content

Instantly share code, notes, and snippets.

View sudocode1's full-sized avatar

sudocode1

View GitHub Profile
@sudocode1
sudocode1 / index.html
Created May 3, 2022 12:13
textarea stuffs
<span id="chatBox"></span> <Br><br>
<textarea id="textBox"></textarea>
<script>
let ws = new WebSocket('ws://localhost:PORT');
let messages = [];
ws.onopen = () => {
//...
}
@sudocode1
sudocode1 / keybase.md
Created May 13, 2021 14:18
keybase.md

Keybase proof

I hereby claim:

  • I am sudocode1 on github.
  • I am sudocode1 (https://keybase.io/sudocode1) on keybase.
  • I have a public key ASAOVCp4HE-6jNlN_4PNmpfNFmDI-306qiHO2O5l-HVoAQo

To claim this, I am signing this object:

@sudocode1
sudocode1 / bot.js
Last active March 25, 2021 21:31
Discord X CLIChat
const Discord = require("discord.js");
const CLIChat = require("clichat.js");
const [bot, client] = [new Discord.Client(), new CLIChat.Client('ip', "discord-interact", true, "SOME_TOKEN")];
client.login();
bot.on('ready', async () => {
console.log("Bot ready");
});