slice of the comment to avoid too long of a tweet
This commit is contained in:
parent
bc11cda4fe
commit
b0196a3d64
@ -177,7 +177,7 @@ class Cheeky(commands.Cog):
|
|||||||
result = river_stats.get_stats()
|
result = river_stats.get_stats()
|
||||||
await ctx.reply(embed=result)
|
await ctx.reply(embed=result)
|
||||||
|
|
||||||
@commands.command(name="twitter")
|
@commands.command(name="twitter", aliases=["tweet"])
|
||||||
async def twitter(self, ctx: commands.Context, message_id):
|
async def twitter(self, ctx: commands.Context, message_id):
|
||||||
|
|
||||||
message = await ctx.channel.fetch_message(message_id)
|
message = await ctx.channel.fetch_message(message_id)
|
||||||
@ -188,7 +188,7 @@ class Cheeky(commands.Cog):
|
|||||||
author_avatar,
|
author_avatar,
|
||||||
core_utils.gen_username()[:14],
|
core_utils.gen_username()[:14],
|
||||||
message.author.display_name,
|
message.author.display_name,
|
||||||
message.content,
|
message.content[:999],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
with open("/tmp/tweet.jpg", "wb") as f:
|
with open("/tmp/tweet.jpg", "wb") as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user