- If a user sends 'hi', the bot will reply 'hey'
- if a user sends '!google YOUR_QUERY_HERE', and it'll reply with the top five links
- if a user sends '!recent YOUR_QUERY_HERE', and it'll reply with a list of similar searches in the user's history
- Create a virtual environment with requirements.txt.
- activate created virtual env.
- Create your discord bot by visiting developers console
- Create google custom search api credentials
- Create your PostgreSQL database
- Create the table 'searches' using the SQL query:
CREATE TABLE searches (user_id VARCHAR(256), keyword VARCHAR(256), search_time TIMESTAMP);
- Create secret.env file with fields present in sample_secret_env.txt.
- Run the app -
python bot.py