Compare commits

...

3 commits

Author SHA1 Message Date
6c95ecbb69 add character limit to posts 2025-10-09 05:30:58 -03:00
f30502d544 add daily list error 2025-10-09 05:08:33 -03:00
b04719c513 update todo list 2025-10-09 05:04:31 -03:00
3 changed files with 10 additions and 1 deletions

View file

@ -16,4 +16,5 @@ dead simple last.fm bot
- ~~**temporary fix**: construct the attachment object from scratch and upload manually(?)~~ __its still broken__
- ~~**temporary fix:** use 0x0.st~~
- **permanent fix**: fork and update nerimity library
- add list generation
- ~~add list generation~~
- add help command

View file

@ -34,6 +34,10 @@ def setup(bot: bot.Bot):
await ctx.send(u.error_msg("Contents are empty."))
return
if len(" ".join(text)) > 500:
await ctx.send(u.error_msg(f"Post is too long!! ({len(" ".join(text))})"))
return
try:
await ctx.send(f"Creating post:\n```markdown\n{" ".join(text)}\n```")

View file

@ -51,6 +51,10 @@ def setup(bot: bot.Bot):
timeframe = "7day"
period = "in the past week"
if timeframe == "1day":
await ctx.send(u.error_msg("Daily lists are not yet supported. Sorry!!"))
return
try:
temp_msg = await ctx.send(f"Generating top {entity}s list for **{username}**...")