GitHub Lines is a minimal and non-intrusive multi-platform bot that displays one or more lines when mentioned in a GitHub (or GitLab) link. It also supports syntax highlighting!
Example:
Add the bot to your server by clicking this link.
GitHub Lines has a few commands that you can use, although no commands are necessary to display the lines. The prefix for the commands is ";"
;help
- Returns a list of commands;about
or;stats
- Returns some info about the bot;invite
,;vote
or;topgg
- Returns the link for the bot's top.gg page, from where you can invite the bot to your server;botsgg
- Returns the link for the bot's discord.bots.gg page, from where you can invite the bot to your server;ping
- Returns the bot's latency;github
or;source
- Returns the bot's source GitHub repo
Add user githublinesbot to the group.
To run the bot yourself, follow these simple steps:
- Clone the repo (
git clone https://github.com/diogoscf/github-lines.git
) - Copy
.env.example
into.env
and paste your Discord bot token (obtain one here) afterDISCORD_TOKEN=
- Run
npm install
- Run
npm start
If you wish to, you may also specify a top.gg token (after
TOPGG=
in the .env
file). You can also specify a GitHub OAuth token
(after GITHUB_TOKEN=
in the .env
file) to avoid rate limits when accessing
the API.
We'd happily accept any contributions to this project. Open an issue if you have any ideas, or open a PR if you'd like to contribute directly.
- Diogo S.C. Fernandes @diogoscf - Creator / Main Dev / Discord bot
- Aadi Bajpai @aadibajpai - Idea for the bot
- Bartek Pacia @bartekpacia - Telegram bot
- Srevin Saju @srevinsaju - Matrix bot