A simple, multifunctional discord bot made with discord.py.
choose
: Randomly chooses from the specified optionsemojis
: Shows the list of emojis available in the serverping
: Returns the bot's latencysay
: Allows the bot to send a specified message to a certain channelserverinfo
: Displays information about the serverinfo
: Displays information about a specified useravatar
: Displays the avatar of the specified user
calculate
: Calculates simple arithmetic expressions (+, -, *, /)
listening
: Shows information about the track that the specified user is currently listening to on Spotifylyrics
: Provides the lyrics for the specified song
cases
(API discontinued): Shows coronavirus statistics for the specified country
kick
: Kicks specified user from the serverban
: Bans specified user from the serverunban
: Unbans specified userclear
: Clears specified amount of messages from the channelslowmode
: Sets slowmode of the channel to the specified time
source
: Shows the source code for the specified command
To use this bot in your own server, you'll need to set up your environment:
- Clone this repository
git clone https://github.com/sidsurakanti/discord-bot-2.git
- Install required dependencies
pip install -r requirements.txt
- Create a new
config.py
file that looks like
# config.example.py
TOKEN="INSERT DISCORD BOT TOKEN HERE"
LYRICS_KEY="INSERT MUSIXMATCH TOKEN HERE"
SPOTIFY_CLIENT="INSERT SPOTIFY CLIENT ID HERE"
SPOTIFY_SECRET="INSERT SPOTIFY CLIENT SECRET HERE"
- Run the bot using
python bot.py
in your terminal - Invite the bot to your own server
- Run commands!