Tag: discord

  • Discord.js Bot Starter Template

    This code will run a basic discord bot that you can split into commands and then keep everything organized in modules. Files: package.json index.js .env src/commands/index.js src/commands/ping.js (a sample command) You can add new commands in src/commands/ folder by copying the sample.js file and modifying it to suit your module. Then you have to edit […]

  • Discordjs Cheatsheet

    HelloWorld discordjs bot The very basic hello world bot can be coded by copying this: This bot will respond with pong when the user messages ping in the channel. Make sure that you add the token from discord developers section for this bot. Check if bot can assign a role to users This needs 2 […]