help valou

This commit is contained in:
2021-02-06 18:32:54 +01:00
parent f743c1fc00
commit 10b297d87d
3 changed files with 25 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
@commands.command()
async def avatar(self, ctx, user: discord.Member = None):
"""Récuperer l'avatar de ..."""
if user is None:
user = ctx.message.author
url_avatar = user.avatar_url_as(format='png')
embed = discord.Embed(
title='Avatar de : ' + user.name,
url=user.avatar_url_as(format='png'),
description=(f'[Voir en plus grand]'
f"({url_avatar})")
)
embed.set_thumbnail(url=url_avatar)
await ctx.send(embed=embed)
+5
View File
@@ -0,0 +1,5 @@
a
c
d
e
f
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env python
while True:
text = input('write on enter:')
with open('test_file.txt', 'a') as f:
f.write(text)