Skip to content

Commit 4e7dec5

Browse files
committed
moved some files for #73
1 parent d5eb6a0 commit 4e7dec5

File tree

11 files changed

+10
-7
lines changed

11 files changed

+10
-7
lines changed

exts/slapping.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,13 @@ async def slaps(self, ctx, *members:discord.Member):
203203

204204

205205
async def make_mute(self, channel, member, time):
206-
print(type(time))
207206
seconds = time.total_seconds()
208207

209208
with ConfigFile(channel.guild.id, folder=TIMES_FOLDER) as count:
210209
free_at = datetime.datetime.now().timestamp() + seconds
211210
if str(member.id) in count.keys():
212211
same = False
213212
for chan in count[str(member.id)]:
214-
print(chan[0], channel.id)
215-
print(int(chan[0])==channel.id)
216213
if int(chan[0]) == channel.id:
217214
chan[1] = int(chan[1]) + seconds
218215
same = True
@@ -224,7 +221,6 @@ async def make_mute(self, channel, member, time):
224221
count[str(member.id)] = [(channel.id, free_at)]
225222

226223
await channel.set_permissions(member, overwrite=discord.PermissionOverwrite(send_messages=False))
227-
print(seconds)
228224
await asyncio.sleep(seconds)
229225
await channel.set_permissions(member, overwrite=discord.PermissionOverwrite(send_messages=None))
230226

@@ -269,12 +265,12 @@ async def spam(self, ctx, member:discord.Member):
269265
@commands.command()
270266
@is_init()
271267
async def abuse(self, ctx, member:discord.Member, *reason):
272-
with ConfigFile(ctx.guild.id) as conf:
273-
mod_chan = conf["commode"]["reports_chan"]
274-
275268
if len(reason)==0:
276269
raise discord.ext.commands.MissingRequiredArgument("You need to provide a reason.")
277270

271+
with ConfigFile(ctx.guild.id) as conf:
272+
mod_chan = conf["commode"]["reports_chan"]
273+
278274
if mod_chan==False:
279275
await ctx.send(ERR_NOT_SETUP[1])
280276
else:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
CONFIG_FOLDER = "servers"
7575
TODO_FOLDER = "todo"
7676
TIMES_FOLDER = "countdowns"
77+
LANG_FOLDER = "lang"
7778

7879
#roles
7980
ROLES_LEVEL = ["manager", "admin"]

0 commit comments

Comments
 (0)