Skip to content

hitesh-kumar-mahour/discordapp

Repository files navigation

BlueStacks Discord Bot

Problem Statement:

Test Bot

Expected Output -

  1. If a user sends 'hi', the bot will reply 'hey'
  2. if a user sends '!google YOUR_QUERY_HERE', and it'll reply with the top five links
  3. if a user sends '!recent YOUR_QUERY_HERE', and it'll reply with a list of similar searches in the user's history

Steps to create your own bot:

  1. Create a virtual environment with requirements.txt.
  2. activate created virtual env.
  3. Create your discord bot by visiting developers console
  4. Create google custom search api credentials
  5. Create your PostgreSQL database
  6. Create the table 'searches' using the SQL query: CREATE TABLE searches (user_id VARCHAR(256), keyword VARCHAR(256), search_time TIMESTAMP);
  7. Create secret.env file with fields present in sample_secret_env.txt.
  8. Run the app - python bot.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages