- Many more languages supported for syntax highlighting.
- Backticks in code can now be displayed properly.
- Syntax highlighting has been added thanks to Discord's
highlight.js
integration. - Now using
discord.ext.commands.Bot
instead ofdiscord.Client
. - Now using
aiohttp
for webscraping instead ofrequests
.
- Follow the instructions here to create a bot and obtain a bot token (you don't need to worry about the application/bot name or avatar). Save the bot token for later.
- Download and run
GithubCodeBot.exe
. You will be prompted for your bot token and command prefix.
- Follow the instructions here to invite the bot to a server of your choice. The bot should have the
Send Messages
permission only. After this, you should be good to go!
If you don't feel like running a sketchy unsigned exe, follow these steps to get the bot up and running locally.
Requirements: python 3.5
or higher, git
, and pip
.
- Follow the instructions here to create a bot and obtain a bot token (you don't need to worry about the bot name or avatar). Save the bot token for later.
- If the requirements are fulfilled, in a target directory, clone the repo:
git clone https://github.com/SeanJxie/GithubCodeBot
- Next, move into the repo:
cd GithubCodeBot
- Then, install the required packages:
py -m pip install -r requirements.txt
- Move into the
src
folder and run the bot (you will be prompted for your bot token and command prefix.):
cd src
py github_code_bot.py
- Follow the instructions here to invite the bot to a server of your choice. The bot should have the
Send Messages
permission only. After this, you should be good to go!
The bot's help
command outlines it all.