mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-15 22:32:10 +00:00
Tag: 1.22
Intermediate commits (oldest → newest): - Fun addition - BGFX - fx - aas - saving repeatable promtp - bugfix - BGFX - BGFX - FX - New deploy - dsd - DDD - Jak wiele literowek mozna zrobic w dwoch slowach - Testr - kurwa serio - serio kurwa ja pierdole niech to kurwa bedzie ostatnia poprawka debilnego błedu w tym pierdolonym kodzie - 1111 - FX - - - Some would say it's ccr. But I'm not i*n. - tcxy - THis commit should be theoretically the last - Fuck whoever designed dicts in python that way - ied - All thirteen - FIX - TEst
This commit is contained in:
@@ -84,3 +84,23 @@ async def get_stats(client, ctx, history_limit):
|
||||
stats[word] = 1
|
||||
for name, how_many in stats.items():
|
||||
yield name, how_many
|
||||
|
||||
async def discord_friendly_reply(ctx, message_content, file=None):
|
||||
if len(message_content) < 999:
|
||||
await ctx.reply(message_content)
|
||||
else:
|
||||
while len(message_content) > 999:
|
||||
await ctx.reply(message_content[:999])
|
||||
message_content = message_content[999:]
|
||||
if file:
|
||||
await ctx.reply("Attachment:", file=file)
|
||||
|
||||
async def discord_friendly_send(ctx, message_content, file=None):
|
||||
if len(message_content) < 999:
|
||||
await ctx.send(message_content)
|
||||
else:
|
||||
while len(message_content) > 999:
|
||||
await ctx.send(message_content[:999])
|
||||
message_content = message_content[999:]
|
||||
if file:
|
||||
await ctx.reply("Attachment:", file=file)
|
||||
|
||||
Reference in New Issue
Block a user