GithubHelp home page GithubHelp logo

sapphire_bot's Introduction

Sapphire

Travis Join Discord Bot invite

A simple bot for discord made with discordrb. The bot is under active development, I'm adding new features and fixing issues everyday. If you don't want to tinker around with code or host the bot on your own, you can invite it to your server by pressing the invite badge above. However, if you do, there are some poorly written instructions down below.

Features

  • Automatic link shortening with https://goo.gl/. Whenever a link within a message is detected, the message gets replaced and all its links shortened. Example:

    PoVa: look at his dank maymay m8: http://img.ifcdn.com/images/a52e08ff36a62190f8259a6b5e9aa2f9f9a86bb841bc6b01aa6cbacc7bbe846f_1.jpg

    (Original message deleted)

    Sapphire: PoVa: look at his dank maymay m8: http://goo.gl/U7GO0D

    This feature is disabled by default, but you can enable it with the following command: toggle shortening. You can find ignored urls here.

  • Owner of the bot can send mass message to all servers by sending the bot a private message.

Commands

Commands start with a prefix, which is ! by default.

  • General:

    • help shows a list of all the commands available.
    • help <command> displays help for a specific command.
    • about shows information about this bot.
    • stats displays bot statistics.
    • ping shows with respond time.
    • invite displays information about inviting this bot to your server.
    • yt <query> finds youtube video.
    • settings displays current server settings.
  • Fun:

    • flip fips a coin.
    • roll rolls a dice.
    • lmgtfy <text> generates lmgtfy (Let Me Google That for you) link.
  • Music bot:

    • music_help displays information on how to use music features.
    • join makes the bot join your voice channel (manage server).
    • leave makes the bot leave your voice channel (manage server).
    • add <query> adds a song to server queue and starts playing it.
    • skip skips current song (manage server).
    • queue shows current queue.
    • clearqueue <index/all> deletes songs from server queue (manage server).
    • repeat toggles repeat (manage server).
  • Moderation:

    • delete <ammount> deletes messages in this channel (manage messages).
    • announce <message> announces your message server-wide (manage messages).
    • kickall kicks all the members from the server, except you and the bot (kick members).
  • Configuration:

    • toggle <setting> allows you to toggle different bot settings.
    • set <setting> <value> allows you to set values of different bot settings.
    • default <setting/all> resets bot setting (or all settings) to default.
  • Debugging and owner only commands:

    • eval <code> evaluates Ruby expression(s). USE WITH EXTREME CAUTION
    • avatar <url> sets avatar of this bot.
    • game <text> sets game status of the bot.

Support

You can find me (@PoVa, ID109268519115329536) on this server: https://discord.gg/0wXjGm76VHrlVadr.

Upcoming features

  • Web interface
  • Tests

Installing and running

  1. Make sure you have git and bundler installed, then

    $ git clone https://github.com/PoVa/sapphire_bot.git

  2. (optional) Install voice dependencies. This is how I do it on my linux machine:

sudo apt-get install libsodium-dev

sudo apt-get install libopus-dev

sudo apt-get install libav-tools

  1. (optional) Remove music from command in the following step.

  2. Run bundle install

$ bundle install --without development music

  1. Run the bot.

    $ ./run

After you've done with configuration, invite url should pop up, use it to make the bot join your server.

Updating

$ git pull

$ bundle install

Debugging

Run the bot with -debug command line option:

$ ./run -debug

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/PoVa/sapphire_bot. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

sapphire_bot's People

Contributors

pova avatar

Stargazers

 avatar

Watchers

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