aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-05-31 13:18:39 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-05-31 13:18:39 +0000
commit66180b116724b315d18d3cc22b22384f1e56a2a3 (patch)
tree3e0825a3d4792ae2af3bc0436d2d90e0b0b1eb95
parentc84ec494e2903182d8b6a6be135206b9260b9937 (diff)
downloadsteve-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 '')
-rw-r--r--[-rwxr-xr-x].gitignore1
-rw-r--r--[-rwxr-xr-x].vscode/settings.json0
-rw-r--r--[-rwxr-xr-x]bot.py6
-rw-r--r--[-rwxr-xr-x]cogs/admin.py6
-rw-r--r--[-rwxr-xr-x]cogs/help.py0
-rw-r--r--[-rwxr-xr-x]cogs/src.py2
-rw-r--r--[-rwxr-xr-x]cogs/trans.py0
-rw-r--r--[-rwxr-xr-x]cogs/utils.py0
-rw-r--r--[-rwxr-xr-x]custom_commands.json0
-rw-r--r--[-rwxr-xr-x]main.py0
10 files changed, 12 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 28f7323..8ba483d 100755..100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ discord.log
api_keys.json
.vscode/
leaderboard.png
+youtube* \ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 478c149..478c149 100755..100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
diff --git a/bot.py b/bot.py
index fe635ff..592b9b1 100755..100644
--- a/bot.py
+++ b/bot.py
@@ -11,7 +11,9 @@ extensions = [
"cogs.admin",
"cogs.src",
"cogs.help",
- "cogs.trans"
+ "cogs.trans",
+ "cogs.player",
+ "cogs.general"
]
def get_prefix(bot, message):
"""A callable Prefix for our bot. This could be edited to allow per server prefixes."""
@@ -59,4 +61,4 @@ class BedrockBot(commands.Bot):
return
def run(self):
- super().run(config.token, reconnect=True)
+ super().run(config.token, reconnect=True) \ No newline at end of file
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
diff --git a/custom_commands.json b/custom_commands.json
index 6558699..6558699 100755..100644
--- a/custom_commands.json
+++ b/custom_commands.json
diff --git a/main.py b/main.py
index 9f713bf..9f713bf 100755..100644
--- a/main.py
+++ b/main.py