A discord bot that can respond with various different descriptions of the word, based on the command.
(Task ID : Discord Dictionary Bot)
- Create a bot in this link and copy the token that is generated for the bot, and paste it in the code where the bot token is to be inserted.
- In order to make the
$query
command available, create an account in openAI and get the API key and paste it in the code where the openAI key is to be inserted. - Add the bot to the server of choice.
- Type
$help
for further instructions.
- Get the meaning of a word
- Get the part of speech the word belongs to
- Find out the origin of the word
- Learn how to pronounce the word through phonetics
- Learn how to use the word in a sentence
- Get the synonyms of the word
- Ask the bot questions to get a witty answer
- Invite the bot to the server, by clicking on this link.
- All the commands are to be preceded by '$', type
$help
to know what commands you can use, and what those commands can do.$all
To get all the information about the word$definition
To get the meaning of the word$pos
To get the part of speech the word belongs to$org
To find out about the origin of the word$phonetic
To learn about the pronounciation of the word$usage
To see the word being used in a sentence$syn
To obtain the synonyms of the word$ant
To obtain the antonyms of the word$query
To talk to the bot
pip install discord.py openai requests
$help <word>
$all <word>
$query <word>
The demo video of the bot working can be found in this link.