Skip to content

dolphingarlic/git-the-lines

Repository files navigation

Git the lines

Codacy Badge Build Status Up Status Servers inviteme

A Discord bot that prints out the lines referenced in a Git snippet link (e.g. https://github.com/dolphingarlic/git-the-lines/blob/master/bot.py#L30-L34)

Usage

Just send the link to the snippet - no need for extra commands! Git the lines even highlights the code for you

The bot in action

Features

  • GitHub
    • Public repos
    • Private repos*
    • Gists
  • GitLab
    • Public repos
    • Private repos*
  • BitBucket
    • Public repos
  • Heptapod
    • Public repos

*Private repos are only supported if self-hosted

Commands

Ping

Command: g;ping.

Action: Pings bot, returns bot delay in ms.

About

Command: g;about.

Aliases: g;stats.

Action: Shows bot statistics and technical data.

Help

Command: g;help.

Action: Shows help information.

Invite

Command: g;invite.

Aliases: g;topgg.

Action: Sends a bot invite link.

GitHub Repo

Command: g;github.

Aliases: g;source.

Action: Sends the bot GitHub repo link

Get the bot

Use this link to add the bot to your server

Deploy

Alternatively, you can self-host the bot using Heroku, pythonanywhere, or any other hosting service. Simply create a file named .env and set DISCORD_TOKEN to your Discord bot token

Contribute

We gladly accept any (constructive) contributions. Feel free to open issues and pull requests!

About

A Discord bot that prints out the lines referenced in a GitHub, GitLab, or BitBucket snippet link

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages