Compare commits
3 commits
66c9bdada0
...
6c95ecbb69
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c95ecbb69 | |||
| f30502d544 | |||
| b04719c513 |
3 changed files with 10 additions and 1 deletions
|
|
@ -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**: construct the attachment object from scratch and upload manually(?)~~ __its still broken__
|
||||||
- ~~**temporary fix:** use 0x0.st~~ ✅
|
- ~~**temporary fix:** use 0x0.st~~ ✅
|
||||||
- **permanent fix**: fork and update nerimity library
|
- **permanent fix**: fork and update nerimity library
|
||||||
- add list generation
|
- ~~add list generation~~ ✅
|
||||||
|
- add help command
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,10 @@ def setup(bot: bot.Bot):
|
||||||
await ctx.send(u.error_msg("Contents are empty."))
|
await ctx.send(u.error_msg("Contents are empty."))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if len(" ".join(text)) > 500:
|
||||||
|
await ctx.send(u.error_msg(f"Post is too long!! ({len(" ".join(text))})"))
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await ctx.send(f"Creating post:\n```markdown\n{" ".join(text)}\n```")
|
await ctx.send(f"Creating post:\n```markdown\n{" ".join(text)}\n```")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,10 @@ def setup(bot: bot.Bot):
|
||||||
timeframe = "7day"
|
timeframe = "7day"
|
||||||
period = "in the past week"
|
period = "in the past week"
|
||||||
|
|
||||||
|
if timeframe == "1day":
|
||||||
|
await ctx.send(u.error_msg("Daily lists are not yet supported. Sorry!!"))
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
temp_msg = await ctx.send(f"Generating top {entity}s list for **{username}**...")
|
temp_msg = await ctx.send(f"Generating top {entity}s list for **{username}**...")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue