Skip to content

blahnumbers/discord-toribot

Repository files navigation

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

About

A general use Toribash bot for Discord

Resources

License

Stars

Watchers

Forks