From 40dd37de002a9b20e8315ff3e03df392ce2c4e79 Mon Sep 17 00:00:00 2001 From: Ian Burgess Date: Wed, 12 Jun 2024 21:33:27 -0600 Subject: [PATCH] added counting setcount --- bot/cogs/counting.py | 6 ++++++ push.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bot/cogs/counting.py b/bot/cogs/counting.py index 4698218..e07db2d 100644 --- a/bot/cogs/counting.py +++ b/bot/cogs/counting.py @@ -30,6 +30,12 @@ class Counting(commands.Cog): db = storage(ctx.guild.id, self.bot.db).db db('counting', 'channel', ctx.channel.id) await ctx.send(f"counting channel set to {db('counting', 'channel')}") + + @bridge.bridge_command() + async def setcount(self, ctx, args): + db = storage(ctx.guild.id, self.bot.db).db + db('counting', 'count', args) + await ctx.send(f"count set to {args}") diff --git a/push.sh b/push.sh index 2d82f64..0125239 100755 --- a/push.sh +++ b/push.sh @@ -1,2 +1,2 @@ -docker build -t turdbot -f bot/Dockerfile . && docker push ionburger/turdbot +docker build -t turdbot:latest -f bot/Dockerfile . && docker push ionburger/turdbot:latest #docker build -t turdweb -f flask/Dockerfile . && docker push ionburger/turdweb \ No newline at end of file