Add GDQ donation generator
This commit is contained in:
parent
e2a464ecb7
commit
84bda4043e
1 changed files with 6 additions and 0 deletions
6
bot.py
6
bot.py
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue