Add balls command

This commit is contained in:
Terry Hearst 2022-11-27 23:06:02 -05:00
parent 87c5fd1abf
commit e2a464ecb7

7
bot.py
View file

@ -1,6 +1,7 @@
# Basic twitch bot # Basic twitch bot
import os import os
import random
import sqlite3 import sqlite3
from twitchio.ext import commands from twitchio.ext import commands
from twitchio.ext import pubsub from twitchio.ext import pubsub
@ -148,6 +149,12 @@ class Bot(commands.Bot):
message += f" {PREFIX}{command[0]}" message += f" {PREFIX}{command[0]}"
await ctx.send(message) await ctx.send(message)
@commands.command()
async def balls(self, ctx: commands.Context):
word_list = "cubes are just balls with corners lmao".split(" ")
random.shuffle(word_list)
await ctx.send(" ".join(word_list))
def main(): def main():
load_dotenv() load_dotenv()