CountingBot is a Discord counting bot made with discord.js v14.
Report Bug & Request Feature
- Developed using Discord.js v14
- Advanced Counting System
- Top.gg vote reward
- User saves
- User-friendly and Easy to Use
- Slash commands
- Leaderboard system
- Math count
- Customizable settings
Need Help with setup? Join our Discord Server and ask in the #support channel
Before starting with the installation, you need to have the following:
- Clone the CountingBot repository:
git clone https://github.com/dawgcodes/CountingBot.git- change the directory to CountingBot
cd CountingBot- Install the required packages:
npm i- Set up your environment variables:
Create a .env file in the root directory of your project with the following variables:
TOKEN="."## Your bot token
MONGO="mongodb+srv://xyz:xyz@xyz.rn0v74r.mongodb.net/?retryWrites=true&w=majority"## Your MongoDb Url.Than fill config.json file to your variables:
{
"global": true, ## Global slash command"devGuildId": "", ## Devloper guild id"clientId": "", ## Bot client id"devs": [""], ## Developers id"logChannel": "", ## Command log channel"color": " White",
"voteLog": "", ## Bot vote log channel"support": ""## Bot support server
}
- Go to
Events/Vote/VoteEvent.jsthan change the port at line 93.
app.listen(YOUR_SERVER_PORT);- Make a url:
http://YOUR_IP:PORT/vote
## replace YOUR_IP to your server/vps ip and replace PORT to your server/vps portThan go on top.gg bot webhook site. And replace the webhook url to this url.
Also out
votein Authorization option.Run the bot:
npm run ./Structures/index.js or node .- Invite the bot to your server:
Generate an invite link for your bot and invite it to your server using the Discord Developer Portal or using permissions calculator: https://discordapi.com/permissions.html