Skip to content

SeanJxie/GithubCodeBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GithubCodeBot

Recent Changes

  • 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 of discord.Client.
  • Now using aiohttp for webscraping instead of requests.

demo

EXE Setup

  1. 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.

  1. Download and run GithubCodeBot.exe. You will be prompted for your bot token and command prefix.

  1. Follow the instructions here to invite the bot to a server of your choice. The bot should have the Send Messagespermission only. After this, you should be good to go!

Python Windows Setup

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.

  1. 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.

  1. If the requirements are fulfilled, in a target directory, clone the repo:
git clone https://github.com/SeanJxie/GithubCodeBot

  1. Next, move into the repo:
cd GithubCodeBot

  1. Then, install the required packages:
py -m pip install -r requirements.txt

  1. 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

  1. Follow the instructions here to invite the bot to a server of your choice. The bot should have the Send Messagespermission only. After this, you should be good to go!

Commands

The bot's help command outlines it all.

About

A Discord bot that reveals code in Github file links.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages