- Creating the api
- Creating Discord bot
- Install the necessary libraries
$ pip install -r requirements.txt
- Run the
my_cypher.py
and provide bot token to generate encrypted token$ python my_cypher.py [!] Please provide the password : [!] Add any string to encrypt: bot_token [!] Please Enter api key : [!] Please Enter secret_key : [*] Encrypted random string : b'gAAAAABgdajqnciy9bqXwtziiEZ45wjeo-17ZcTNkvq7r0GKpxaA==' [*] Encrypted key pair object :
- Create a
.env
file in the directory and add following variables to that- Copy the encrypted bot key from previous output and create an variable
CRYPTO_BOT_KEY=<encrypted_bot_key_goes_here>
- Get the channel ID from Discord which you want to send notifications to and create another variable
CHANNEL_ID=<channel_ID_goes_here>
- Run the script and provide the password which you used to encrypt the key pairs.
$ python main.py [!] Please provide the password :
- Change the Discord code to make it easily customisable