This is a multi-function Discord bot, with fun and moderation commands. This bot could be self-hosted either on a dedicated server or cloud hosting like AWS.
You can set your own prefix here.
help
daily
- Claim daily bonus 2000 coinsroulette
- Roulette coinsbalance
- Check your balancedeposit
- Deposit coinswithdraw
- Withdraw coinsbeg
- Beg for coinsgivecoins
- Give someone coins
8ball
- 8Ball answers a questionjoke
- Cringy jokemomjoke
- Mom jokecookie
- Fortune cookiejuice
- Check juice levelweebify
- UwU-fy your message ! >.<hw
- Hunt weebskw
- Kill weebscage
- Number of caged weebs
lastfm set
- Set name to database for Last.fm commandslastfm profile
- Shows a user's Last.fm profilelastfm playing
- Shows what song a user on Last.fm is playingcatfact
- Get random cat factsdogfact
- Get random dog factssay
- Make the bot say somethingperms
- Check permissionsavatar
- Avatar/profile picture of a userweather
- Check the weather of a locationafk
- Go AFKnafk
- Return from AFKremind
- Set a reminderfirstmessage
- See the first message of a channeltranslate
- Translate something into Englishemojify
- Emojify a messagejoinposition
- Check the join position of a membercurrency
- Check the conversion rate between two currenciessubage
- Check the Twitch subage of a user to a channeldefine
- Get the definition of a wordurban
- Get the Urban definition of a wordascii
- Get an ASCII braille of an image or emoteocr
- Get text from an image
nick
- Change someone's nicknameresetnick
- Reset someone's nicknamekick
- Kick a member from the serverban
- Ban a member from the serverpurge
- Purge the chat
Install the dependencies using npm.
note: this will not work with Discord.js V13.
To get the source code, run:
git clone https://github.com/hhharrisonnn/discord-bot-v2.git
To get the dependencies, run:
npm install
or
npm i
Setup a database using MongoDB:
- Create a cluster
- Connect your application and get the MongoDB SRV
- Add the MongoDB SRV into the .env file
You will need an ExchangeRate-API key for currency.js:
You will need an OCR API key for ocr.js:
- Register for an OCR API key here
- Check your email for the OCR API key
- Add the OCR API key into the .env file
- Create a
.env
file to store your tokens - Add in the values for each:
DISCORD_TOKEN = <yourDiscordToken>
MONGODB_SRV = <mongodb+srv://{yourinfo}>
EXCHANGERATE_KEY = <yourExchangeRateKey>
OCR_KEY = <yourOCRKey>
PREFIX = <yourPrefix>
Start the bot by typing:
node .
Alternatively, with nodemon:
npm run devStart
This project was heavily inspired by Supinic's Twitch bot Supibot.
Check him out here:
Twitch
Website
GitHub