increase randomlimit in c/filter.py
This commit is contained in:
@@ -54,8 +54,8 @@ class Filter(commands.Cog):
|
||||
message_id = resultsid[0] + 1
|
||||
self.bot.conmsg.execute("INSERT INTO message(id, server_id, messages) VALUES (?, ?, ?)", (message_id, server_id, msg))
|
||||
self.bot.conmsg.commit()
|
||||
c = 5
|
||||
a = random.randrange(0, c)
|
||||
randomlimit = 9
|
||||
a = random.randrange(0, randomlimit)
|
||||
if a == 1:
|
||||
b = random.randrange(1, message_id)
|
||||
rows2 = self.bot.conmsg.execute("SELECT messages FROM message WHERE id=? AND server_id=? ORDER BY id DESC LIMIT 1", (b, server_id,))
|
||||
|
||||
Reference in New Issue
Block a user