aboutsummaryrefslogtreecommitdiffstats
path: root/SmallYTChannelBotSubmissions.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2019-02-02 11:54:35 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2019-02-02 11:54:35 +0000
commitf60dfbd9a0523e9aba07b7935c26672b1578bcd7 (patch)
tree817c6d671c7308e4000fc3e91ac762c61153e5c7 /SmallYTChannelBotSubmissions.py
parent89e2ea115f4bd82e3ca26fe915dee1866c07908d (diff)
downloadSmallYTChannelBot-f60dfbd9a0523e9aba07b7935c26672b1578bcd7.tar.gz
SmallYTChannelBot-f60dfbd9a0523e9aba07b7935c26672b1578bcd7.zip
database backup
Diffstat (limited to 'SmallYTChannelBotSubmissions.py')
-rw-r--r--SmallYTChannelBotSubmissions.py38
1 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: