aboutsummaryrefslogtreecommitdiffstats
path: root/subreddit.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2024-05-29 19:00:00 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2024-05-29 19:00:00 +0100
commitb3aabb4919cb935236b2e913d497fb3cf240ae5d (patch)
treef878cec38879cd7fe02af2e1f9d9e74a1db8f3c5 /subreddit.py
parent7a11c80ebf731f484bb1e6200229bc5d7e341599 (diff)
downloadSmallYTChannelBot-b3aabb4919cb935236b2e913d497fb3cf240ae5d.tar.gz
SmallYTChannelBot-b3aabb4919cb935236b2e913d497fb3cf240ae5d.zip
Fixed bug with string formattingHEADmaster
Diffstat (limited to 'subreddit.py')
-rwxr-xr-xsubreddit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/subreddit.py b/subreddit.py
index 9fe4088..510771b 100755
--- a/subreddit.py
+++ b/subreddit.py
@@ -191,9 +191,9 @@ def handle_submission(submission, reddit):
else:
if score < CONFIG["lambda_cost"]:
text = """Thank you for submitting to /r/SmallYTChannel. Unfortunally, you submission has been removed since you do not have enough λ. You need
- %iλ to post. You currently have %iλ. For more information, read the [FAQ.](https://www.reddit.com/user/SmallYTChannelBot/comments/a4u7qj/smallytchannelbot_faq/)""" % score
+ %iλ to post. You currently have %iλ. For more information, read the [FAQ.](https://www.reddit.com/user/SmallYTChannelBot/comments/a4u7qj/smallytchannelbot_faq/)""" % (CONFIG["lambda_cost"], score)
submission.mod.remove()
- display("/u/%s had their submission removed for insufficient lambda." % (CONFIG["lambda_cost"], submission.author), concerning=submission.permalink)
+ display("/u/%s had their submission removed for insufficient lambda." % (submission.author), concerning=submission.permalink)
else:
text = """Thank you for submitting to /r/SmallYTChannel. You have spent %iλ to submit here, making your current balance %iλ.
/u/%s, please comment `!givelambda` to the most helpful advice you are given.