Skip to content

Instantly share code, notes, and snippets.

View DarkMindsMakeTheBestArt's full-sized avatar
💭
Working on a Karatsuba algorithm for multiplying big numbers

DarkMindsMakeTheBestArt

💭
Working on a Karatsuba algorithm for multiplying big numbers
View GitHub Profile
Installation guide
1. Use command prompt (windows) and cd to your folder in which your files are stored for the bot, for example cd desktop once there, cd into designated folder.
2. Use npm init and then npm install discord.js --save, your moduels called node_moduels will appear, your installation was succesful.
3. Use the code above.
4. Add the rest of whatever code you want/need.
const Discord = require("discord.js");
const client = new Discord.Client();
client.on("ready", () => {
console.log("I am ready!");
});
client.on("message", (message) => {
if (message.content.startsWith("Hello there")) {
node : the term node is not recongnized as a cmdlet function, or script file or operable program +CategoryInfo +FullQualifiedErrorId
+ObjectNotFound (node:String) [], CommandNotFoundException
const Discord = require('discord.js');
const bot = new Discord.Client();
const token = 's7TQeHozFTfZM6afbZjUsiqCU0cFbYZp';
bot.on('ready', () =>
console.log('This bot is active');
})
bot.login(token);