Just another discord.py Bot
Setup
- Insert your Discord bot token and id from Discord Developer Portal in the file called
config.example.json
and rename it toconfig.json
. - Insert your Tenor API key in the
tenor_key
field and your Tenor App Name intenor_name
field of theconfig.json
file. Otherwise the gifsearch command cannot be used. - If you want the bot to greet new members, set the
greetmembers
field totrue
in theconfig.json
file.
If you do not want the bot to greet new members, set the field tofalse
. - Run
pip install -r requirements.txt
to install the required packages. - Run
python bot.py
to start the bot.
or
Admin commands
- ban: Bans a member from the server.
- member: The member you want to ban
- reason: Why do you want to ban this member?
- kick: Kicks a member from the server.
- member: The member you want to kick
- reason: Why do you want to kick this member?
- lock_or_unlock: Locks or unlocks a channel.
- channel: The channel you want to lock or unlock
- action: 'lock' or 'unlock'
Moderation commands
- nickname: Changes the bot's or a user's nickname
- nickname: The nickname you want the bot or user to have
- member: The member whose nickname you want to change (optional)
- clear: Deletes a certain number of messages
- amount: The amount of messages to clear (1-100)
- poll: Creates a simple poll
- text: Your yes/no question
- say: Lets the bot say something (Use '\\\\' as linebrake)
- message: The text you want the bot to say
- channel: The channel where the message will be sent (optional)
- member: The member you want to timeout
- time: The time you want to mute the member
- emoji: The emote you want to clone
- new_name: The new name of the emoji
Util commands
- avatar: Shows the avatar of a user
- member: The member whose avatar you want to view
- base64decode: Decodes a Base64 string
- text: What is your encoded text?
- base64_encode: Base64 encodes a string
- text: What is the text you want to encode?
- yt: Direct-Download for your YT video
- url: Which YT video do you want to download?
- userinfo: Shows information about a user
- member: About which member do you want to get infos?
Fun commands
- roll: Rolls a virtual dice
- sides: How many sides do you want?
- gifsearch: Shows you a random gif for your query
- query: Search query?
- fact: Shows you a random and useless fact
- language: the language in which you want to see the fact