A discord bot that send random quote on command to the Channel.
-
Clone the repository
git clone https://github.com/m-nobinur/discord-quote-bot.git
-
Setup an app on discord, instructions.
-
Get the bot token<YOUR_BOT_TOKEN>.
-
Invite your bot using following link: https://discord.com/oauth2/authorize?&client_id=APPLICATION_ID&scope=bot+applications.commands&permissions=PERMISSIONS_INT
Replace
APPLICATION_ID
with the application ID and replacePERMISSIONS_INT
with the required permissions integer -
Either set BOT_USER_TOKEN=YOUR_BOT_TOKEN in quote-bot.py or use the token as argument when run the script.
Open terminal and go to cloned discord-quote-bot
folder.
cd discord-quote-bot
Install all the requirements
pip install -r requirements.txt
or
pip3 install -r requirements.txt
If you setted BOT_USER_TOKEN variable to your bot token then run the script as following (On Mac/Linux)
python3 quote-bot.py
(On Windows)
python quote-bot.py
On Mac/Linux
python3 quote-bot.py <YOUR_BOT_TOKEN>
On Windows
python quote-bot.py <YOUR_BOT_TOKEN>
ℹ️ Use virtual environment for best practices.
Variable | What it is |
---|---|
>quote | Send random quote to the Channel |
>quote tags=Tag | Send random quote of given tag. |
>quote tags=Tag,Tag|Tag | Send random quote of given tags. |
>quote len=Max | Send random quote of given Max length. |
>quote len=Min-Max | Send random quote within given Minimum & Maximum length. |
>quote tags=Tag len=Max | The user ID of all the bot owners |
on tags "," represent "and" and "|" represent "or"