Skip to content

Instantly share code, notes, and snippets.

View swng's full-sized avatar

swng

View GitHub Profile
@swng
swng / notation_bot_excerpt.js
Last active May 14, 2024 23:56
notation bot
client.on("messageCreate", async function (message) {
// console.log(message.content);
if (message.content.startsWith(prefix)) {
let split = message.content.split(" ");
let command = split[0].toLowerCase();
command = command.slice(1); // assuming prefix is legnth 1, remove prefix
let command_arguments = split.slice(1); // not including command
if (command == "notation") {
console.log(command);