This is a simple Discord bot implemented using flowise. To set it up and run, please follow the steps mentioned below:
Ensure you have Python
installed on your machine.
You will need to set up environment values:
API_URL = os.environ["URL"]
headers = {"Authorization": os.environ["API_KEY"]}
my_secret = os.environ['DISCORD_BOT_SECRET']
Set env values:
-
nano ~/.bashrc
-
export URL="http:///api/v1/prediction/8f0c9a8"
export API_KEY="EFWszbuNT00D "
export DISCORD_BOT_SECRET="MT"
-
source ~/.bashrc
python main.py
Further Reading If you are interested in creating your own Discord bot using flowise, you can check out my articles for more detailed information and guides:
Create your own Discord bot with flowise:
docker build -t discordbot .
docker run -d discordbot