Skip to content
Snippets Groups Projects
Commit 73e182ac authored by dnns01's avatar dnns01
Browse files

Remove armin and scarecounter

parent 401128d5
No related branches found
No related tags found
No related merge requests found
import random
from datetime import datetime, timedelta
from twitchio.ext import commands
class Armin(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.a = ["ein", "zwei", "drei", "vier", "fünf", "sechs"]
self.b = ["tägige", "wöchige", "monatige", "fache", "malige", "hebige"]
self.c = ["harte", "softe", "optionale", "intransparente", "alternativlose", "unumkehrbare"]
self.d = ["Wellenbrecher-", "Brücken-", "Treppen-", "Wende-", "Impf-", "Ehren-"]
self.e = ["Lockdown", "Stopp", "Maßnahme", "Kampagne", "Sprint", "Matrix"]
self.f = ["zum Sommer", "auf Weiteres", "zur Bundestagswahl", "2030", "nach den Abiturprüfungen",
"in die Puppen"]
self.g = ["sofortigen", "nachhaltigen", "allmählichen", "unausweichlichen", "wirtschaftsschonenden",
"willkürlichen"]
self.h = ["Senkung", "Steigerung", "Beendigung", "Halbierung", "Vernichtung", "Beschönigung"]
self.i = ["Infektionszahlen", "privaten Treffen", "Wirtschaftsleistung", "Wahlprognosen", "dritten Welle",
"Bundeskanzlerin"]
self.arminsagt_cooldown = datetime.now()
@commands.command(name="arminsagt")
async def cmd_arminsagt(self, ctx):
if datetime.now() > self.arminsagt_cooldown:
self.arminsagt_cooldown = datetime.now() + timedelta(minutes=1)
rNum = random.randint(0, 5)
n = "n" if rNum not in [2, 3, 5] else ""
await ctx.send(f"Was wir jetzt brauchen, ist eine{n} {random.choice(self.a)}{random.choice(self.b)}{n} "
f"{random.choice(self.c)}{n} {random.choice(self.d)}{self.e[rNum]} "
f"bis {random.choice(self.f)} zur {random.choice(self.g)} {random.choice(self.h)} "
f"der {random.choice(self.i)}.")
else:
await ctx.send("Sorry, aber Armin denkt noch nach...")
from twitchio.ext import commands
class ScareCounter(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.scarecount = 0
@commands.command(name="scarecount")
async def cmd_scarecount(self, ctx, add=None):
if add == "++":
self.scarecount += 1
elif add == "--":
self.scarecount -= 1
await ctx.send(f"Shawna und Marcus haben sich schon {self.scarecount} mal geBRRRRRRRRt 👻👻👻")
......@@ -9,12 +9,10 @@ from twitchio import Channel, Message
from twitchio.ext import commands
from twitchio.ext.commands import Context
import armin
import chat_commands
import giveaway
import klassenbuch_cog
import link_protection
import scarecounter
import spotify_cog
import vote_cog
......@@ -39,8 +37,6 @@ class StrolchiBot(commands.Bot, ABC):
self.add_cog(klassenbuch_cog.KlassenbuchCog(self))
self.add_cog(spotify_cog.SpotifyCog(self))
self.add_cog(link_protection.LinkProtection(self))
self.add_cog(armin.Armin(self))
self.add_cog(scarecounter.ScareCounter(self))
self.add_cog(giveaway.Giveaway(self))
self.add_cog(chat_commands.Commands(self))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment