Skip to content
A discord bot that provides the ability to play dota hero response clips, do tts, and a variety of other utilities
Python
Branch: master
Clone or download

README.md

MangoByte

Servers Registered Users

A discord bot that provides the ability to play audio clips, play dota responses, answer questions, randomly react to messages, and a large number of other actions. I'm using the discord.py python wrapper for the Discord API. I'm also making use of dotabase, which is an open source repository (created by yours truly) containing data about the game Dota 2.

Examples

Example of a gif you can create with ?laning or ?dotagif:

DotaGif Command

Example of ?lastgame command:

Lastgame Command

This is the long list of all of the commands. You can get this from ?help all

Commands List

Installation

I would recommend simply inviting mangobyte to your server via the Invite Link, but if you want to contribute to mangobyte or just like running things, the following is how you can install and run your own instance of mangobyte.

Before installing and running your own instance of mangobyte, you will first need to install the following:

  • Python 3.6
  • Pip
  • Dependencies: python3.6 -m pip install -r requirements.txt
  • ffmpeg (the tool used for playing audio)
  • gifsicle (the tool used for creating gifs)

If you run python3.6 mangobyte.py, you will probably get an error message because the bot token isn't set. You'll have to create a bot account through discord in order to get one of these tokens. Note that the above link is for a different discord bot, and so the "Logging in with a token" section does not apply here. Now that you have a bot account, set the token field in the settings.json file to your new bot's token. After you have done this, and have invited your bot to your server, don't forget to add the ID of the voice channel you want to connect it to in the defaultvoice field in the settings.json file.

You should now be done! You can run mangobyte by calling python3.6 mangobyte.py, and you should probably set up a virtual environment so that nothing bad has a chance of happening.

Example settings.json file

{
	"token": "<token here>",
	"error_logging": false,
	"debug": false
}

For explanation of each option, see the comments on the properties in settings.py

You can’t perform that action at this time.