Giter Club home page Giter Club logo

discord-toribot's Introduction

Toribash logo

Discord ToriBot

MIT License Version Discord.js

Discord bot that allows getting information about Toribash players - such as general user information, TC and ST balance, inventory and so on.
It also has hidden meme functionality and helps us automate some stuff in the official Toribash Discord server.

Commands

All main functionality is available via Discord's slash commands. When in doubt, use /help.

Basic user info commands

/tc username - display user's ToriCredits balance
/st username - display user's Shiai Tokens balance
/info username - display main information about the user

Inventory

/inventory username - fetch user's inventory from Toribash API and and cache it for display
After using that command, the bot will DM you with inventory information which you can navigate using the neat button based interface.



Funi stuf

/swansong - sends a link to the best romantic Toribash song ever
/clanleague - sends a random Clan League meme
/yourattempts [name] - wreck your opponents with facts and logic™️ and send them crying to their corner

The bot will also react to any message mentioning Ele with the glorious emoji.

Self hosting the bot

To host your own version of ToriBot, you need Node.js, NPM and a Discord developer account.

Cloning repo and setting up

Navigate to your directory of choice and clone this repo:

git clone https://github.com/blahnumbers/discord-toribot.git

After that is done, navigate to your newly created dir and install all dependencies:

cd discord-toribot
npm install

Now we need to set up the token that'd go in auth.json file.

Go to Discord Developer Portal and create a new application.
After creating an app and doing some primary setup, go to Bot tab and hit "Add Bot" button on the right. Now you'll be able to generate the token and use it to authenticate your bot. Very nice!
Just make sure you keep the token secure at all times, literally every step of its creation on Discord will also remind you of that.

And that's it! Fire up the bot and enjoy:

node bot.js

discord-toribot's People

Contributors

blahnumbers avatar dependabot[bot] avatar

Watchers

 avatar mitch avatar

Forkers

dashcode

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.