From 84bda4043ee5e531607d185ebb94e7d8363168bb Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Wed, 15 Feb 2023 22:32:09 -0500 Subject: [PATCH] Add GDQ donation generator --- bot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bot.py b/bot.py index 165a419..1584f5a 100644 --- a/bot.py +++ b/bot.py @@ -6,6 +6,7 @@ import sqlite3 from twitchio.ext import commands from twitchio.ext import pubsub from dotenv import load_dotenv +import requests PREFIX = "!" DB_PATH = "storage.db" @@ -155,6 +156,11 @@ class Bot(commands.Bot): random.shuffle(word_list) await ctx.send(" ".join(word_list)) + @commands.command() + async def donation(self, ctx: commands.Context): + r = requests.get("https://taskinoz.com/gdq/api/") + await ctx.send(r.text) + def main(): load_dotenv()