A discord bot inspired by the amazing Arch Wizard of the Crimson Wizard Clan, Megumin! From the anime, Konosuba.
The bot was built off of discord.js.
Thanks for checking out my repo.
If you have any suggestions on making this project any better I'd appreciate it.
Please create an issue if something wrong happens.
- Grab a recent post from the r/Megumin subreddit
- Using the selenium module for python to extract quotes from animecharactersdatabase
- Other small stuff
- js
- python
-
Node.JS (v8.11.3)
-
discord.js v(11.3.2)
-
node-fetch (v2.1.2)
-
bufferutil (v4.0.0)
-
µWS (v10.148.1)
-
ChromeDriver (v2.40)
-
Selenium (v3.13.0)
- Install Node.JS
- Clone/Download repository
- Inside directory, use ubuntu terminal.
sudo npm install
to install dependencies - Go to https://discordapp.com/developers/applications
- Create an application
- Navigate to the
Bot
section located in the sidebar - Copy your bot token
- Set a profile pic (The one I used is linked above under resources)
- Go to config folder and create a file with the name
token.json
{
'token': 'paste token here'
}
- Paste the above into your
token.json
file. - Invite your bot to discord using this link: https://discordapi.com/permissions.html NOTE: Make sure you copy your client ID which can be found under
general information
where you got your token. - Navigate to the directory in your ubuntu terminal and run
node src/index.js
- If a season three of Konosuba does come out, make sure to run the python script to update the current list of Megumin quotes. A chrome window will open since I'm a beginner and I don't know much about webscraping.
-
I use the Prettier code formatter for js (default settings from atom-beautify).
-
I use the Pretty Diff code formatter for html (default settings from atom-beautify).
-
I use the autoPEP 8 code formatter for python. It functions under python.org's PEP 8 rules. (default settings from atom-beautify).