Skip to content
Snippets Groups Projects
Commit 5afb89c9 authored by Dennis Klein's avatar Dennis Klein
Browse files

Add confirmations when sending !gierig, to take part in the giveaway

parent 1eefd225
Branches
No related tags found
No related merge requests found
......@@ -14,8 +14,13 @@ class Giveaway:
async def cmd_giveaway(self, ctx):
""" take part at the giveaway """
texts = [f"{ctx.author.name} ist ein gieriger Gierlappen!", f"Geil!!! {ctx.author.name} giert hart rein!",
f"So klappt es doch {ctx.author.name}! Einmal hart reingieren."]
if self.giveaway_enabled:
self.giveaway_entries[ctx.author.name] = 1
if self.giveaway_entries.get(ctx.author.name) != 1:
await self.bot.send_me(ctx, random.choice(texts), "YellowGreen")
self.giveaway_entries[ctx.author.name] = 1
@commands.command(name="giveaway")
async def cmd_giveaway_open(self, ctx, param):
......
......@@ -76,7 +76,7 @@ class LinkProtection:
def is_user_whitelisted(self, user):
if self.has_user_permanent_permit(user):
return True
elif until := self.permit.get(user.name):
elif until := self.permit.get(user.name.lower()):
return until >= datetime.now()
else:
return False
......
......@@ -5,7 +5,7 @@ from twitchio.ext import commands
class ScareCounter:
def __init__(self, bot):
self.bot = bot
self.scarecount = 11
self.scarecount = 18
@commands.command(name="scarecount")
async def cmd_scarecount(self, ctx, add=None):
......@@ -14,4 +14,4 @@ class ScareCounter:
elif add == "--":
self.scarecount -= 1
await ctx.send(f"Shawna und Marcus haben sich schon {self.scarecount} mal gegruselt 👻👻👻")
await ctx.send(f"Shawna und Marcus haben sich schon {self.scarecount} mal geBRRRRRRRRt 👻👻👻")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment