Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 2.44 KB

README.md

File metadata and controls

64 lines (52 loc) · 2.44 KB

Discord Dictionary Bot, "Case"

A discord bot that can respond with various different descriptions of the word, based on the command.

(Task ID : Discord Dictionary Bot)

Setup Instructions

  • 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.

Features

  • 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

How to use

  • 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
    • $definitionTo 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
    • $phoneticTo learn about the pronounciation of the word
    • $usageTo see the word being used in a sentence
    • $synTo obtain the synonyms of the word
    • $antTo obtain the antonyms of the word
    • $queryTo talk to the bot

Libraries/APIs used

Requirements

pip install discord.py openai requests

Demo

$help <word>

$all <word>

$query <word>

The demo video of the bot working can be found in this link.