diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-05-31 13:18:39 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-05-31 13:18:39 +0000 |
commit | 66180b116724b315d18d3cc22b22384f1e56a2a3 (patch) | |
tree | 3e0825a3d4792ae2af3bc0436d2d90e0b0b1eb95 /cogs | |
parent | c84ec494e2903182d8b6a6be135206b9260b9937 (diff) | |
download | steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.gz steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.bz2 steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.lz steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.xz steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.tar.zst steve-bot-66180b116724b315d18d3cc22b22384f1e56a2a3.zip |
Replacing Dyno
Diffstat (limited to 'cogs')
-rw-r--r--[-rwxr-xr-x] | cogs/admin.py | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | cogs/help.py | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | cogs/src.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | cogs/trans.py | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | cogs/utils.py | 0 |
5 files changed, 7 insertions, 1 deletions
diff --git a/cogs/admin.py b/cogs/admin.py index 8f100c1..670ab34 100755..100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -97,5 +97,11 @@ class Admin(commands.Cog): await ctx.voice_client.disconnect() await ctx.send(f"Left channel {ctx.author.voice.channel.name}") + @commands.command() + @commands.check(is_mod) + async def clear(self, ctx, number): + await ctx.message.channel.purge(limit=int(number), check=None, before=None, after=None, around=None, oldest_first=False, bulk=True) + + def setup(bot): bot.add_cog(Admin(bot)) diff --git a/cogs/help.py b/cogs/help.py index ac330f1..ac330f1 100755..100644 --- a/cogs/help.py +++ b/cogs/help.py diff --git a/cogs/src.py b/cogs/src.py index e634f18..96bf53c 100755..100644 --- a/cogs/src.py +++ b/cogs/src.py @@ -241,7 +241,7 @@ class Src(commands.Cog): userID = ctx.message.author.id await verifyNew(self, apiKey, userID) - @tasks.loop(minutes=2.0) + @tasks.loop(minutes=10.0) async def checker(self): data = json.loads(Path('./api_keys.json').read_text()) for key,value in data.items(): diff --git a/cogs/trans.py b/cogs/trans.py index a34a7bf..a34a7bf 100755..100644 --- a/cogs/trans.py +++ b/cogs/trans.py diff --git a/cogs/utils.py b/cogs/utils.py index f1cfeba..f1cfeba 100755..100644 --- a/cogs/utils.py +++ b/cogs/utils.py |