Skip to content

roboisaac11/Fun-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot

This is a discord bot that I made, and you can make it sing, and it can make you rich. This bot only has 2 commands, but you can add more.

(also, this is my first .md file. I like the syntax!

So, this is how you can make your own:

Start the file with

const Discord = require('discord.js');
const client = new Discord.Client();

To know when the program starts, you can you use

client.on('ready', () => {
  console.log('The bot has started.');
});

To prosess messages people send, use

client.on('message', msg => {
  <<prosess msg here>>
});

And, at the end of the file, you must have a line that connects it to you bot:

client.login('Something here');

Here is a site that explanes in more detail:

Create Discord Bot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published