Add GDQ donation generator

This commit is contained in:
Terry Hearst 2023-02-15 22:32:09 -05:00
parent e2a464ecb7
commit 84bda4043e

6
bot.py
View file

@ -6,6 +6,7 @@ import sqlite3
from twitchio.ext import commands from twitchio.ext import commands
from twitchio.ext import pubsub from twitchio.ext import pubsub
from dotenv import load_dotenv from dotenv import load_dotenv
import requests
PREFIX = "!" PREFIX = "!"
DB_PATH = "storage.db" DB_PATH = "storage.db"
@ -155,6 +156,11 @@ class Bot(commands.Bot):
random.shuffle(word_list) random.shuffle(word_list)
await ctx.send(" ".join(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(): def main():
load_dotenv() load_dotenv()