Code Monkey home page Code Monkey logo

git-the-lines's Introduction

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.