Coder Social home page Coder Social logo

github-lines's Introduction

Discord Telegram

inviteme Up Status Servers TravisCI Codacy

GitHub Lines

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!

Discord

Example:

Github LinesExample

Adding to a Discord server

Add the bot to your server by clicking this link.

Discord Commands

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 ";"

  1. ;help - Returns a list of commands
  2. ;about or ;stats - Returns some info about the bot
  3. ;invite, ;vote or ;topgg - Returns the link for the bot's top.gg page, from where you can invite the bot to your server
  4. ;botsgg - Returns the link for the bot's discord.bots.gg page, from where you can invite the bot to your server
  5. ;ping - Returns the bot's latency
  6. ;github or ;source - Returns the bot's source GitHub repo

Telegram

Add user githublinesbot to the group.

Running your own

To run the bot yourself, follow these simple steps:

  1. Clone the repo (git clone https://github.com/diogoscf/github-lines.git)
  2. Copy .env.example into .env and paste your Discord bot token (obtain one here) after DISCORD_TOKEN=
  3. Run npm install
  4. 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.

Contributing

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.

Contributors

github-lines's People

Contributors

diogoscf avatar dependabot[bot] avatar bartekpacia avatar srevinsaju avatar realjammy avatar

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.