aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SmallYTChannelBotSubmissions.py38
-rw-r--r--SmallYTChannelDatabase.dbbin621568 -> 1472512 bytes
2 files changed, 19 insertions, 19 deletions
diff --git a/SmallYTChannelBotSubmissions.py b/SmallYTChannelBotSubmissions.py
index 0fa9967..1c204dd 100644
--- a/SmallYTChannelBotSubmissions.py
+++ b/SmallYTChannelBotSubmissions.py
@@ -203,25 +203,25 @@ def main():
reply = comment.reply(text + tail)
reply.mod.distinguish()
- if comment.body[:11] == "!takelambda" and str(comment.author) in get_mods():
- try:
- splitted = comment.body.split()
- user = splitted[1].replace("/u/", "")
- toremove = int(splitted[2])
- reason = " ".join(splitted[3:])
-
- text = "/u/%s has had %iλ taken away from them for the reason '%s'. /u/%s now has %iλ" % (user, toremove, reason, user, db.get_lambda(user)[0] - toremove)
- db.change_lambda(user, -toremove)
- except Exception as e:
- print("[ERROR while removing λ] %s" % e)
- text = r"An error was encountered. Please use the syntax `!takelambda [user] [how much to remove {integer}] [reason]`"
- reply = comment.reply(text + tail)
- reply.mod.distinguish()
- continue
-
- update_users_flair(comment.parent())
- reply = comment.reply(text + tail)
- reply.mod.distinguish()
+ #if comment.body[:11] == "!takelambda" and str(comment.author) in get_mods():
+ # try:
+ # splitted = comment.body.split()
+ # user = splitted[1].replace("/u/", "")
+ # toremove = int(splitted[2])
+ # reason = " ".join(splitted[3:])
+ #
+ # text = "/u/%s has had %iλ taken away from them for the reason '%s'. /u/%s now has %iλ" % (user, toremove, reason, user, db.get_lambda(user)[0] - toremove)
+ # db.change_lambda(user, -toremove)
+ # except Exception as e:
+ # print("[ERROR while removing λ] %s" % e)
+ # text = r"An error was encountered. Please use the syntax `!takelambda [user] [how much to remove {integer}] [reason]`"
+ # reply = comment.reply(text + tail)
+ # reply.mod.distinguish()
+ # continue
+
+ # update_users_flair(comment.parent())
+ # reply = comment.reply(text + tail)
+ # reply.mod.distinguish()
for submission in submission_stream:
diff --git a/SmallYTChannelDatabase.db b/SmallYTChannelDatabase.db
index cd5d260..c9258d5 100644
--- a/SmallYTChannelDatabase.db
+++ b/SmallYTChannelDatabase.db
Binary files differ