Skip to content

centopw/CenBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CenBot.

Discord Users Online

Quality Gate Status Maintainability Rating Reliability Rating Security Rating Lines of Code

A Discord bot make with Love and nodejs.

Setup.

Make sure you have install nodejs

Navigate to project folder and install all dependencies:

$ npm i

Add your bot token (Create one here) in botsettings.json

To run the bot:

npm index.js

Add or remove command.

Go to /commands

Ex: to make bot say hi, go to commands create a file name hi.js and add

const Discord = require("discord.js")
const botconfig = require("../botsettings.json");//load bot config

module.exports.run = async (bot, message, args) => {
    return message.channel.send("Hello") //return the text Hello
}

module.exports.config = {
    name: "hi",//Name of the command
    description: "",//description for the command
    usage: "hi",//run the command 
    accessableby: "Members", //what permission requre to run the command
    aliases: ['h'] //another way to use the command
}

Dependencies.

  • discord.js
  • moment

ToDo.

  • Optimize the code
  • Add more modules
  • A full document on how to setup & run

Source code.

https://github.com/centopw/CenBot

Contact

For all Question contact me: centopw@gmail.com

Support Server