我正在用 python pyogram 制作我的用户机器人。我想发送一个带有灭霸 gif 的 meme 命令有这个代码:app.send_animation("me", "thanos.gif", unsave=True),但它在“收藏夹”中将这个 gif 发送给我
主页
/
user-472677
dudha369's questions
我正在用python编写一个机器人,我想为它实现静音命令,我看到了向用户添加角色的选项,但它们不起作用(我将没有权限的角色设置为高于管理员并且可以写入无论如何聊天)。还做了这个代码:
@bot.command(pass_context=True, aliases=['замуть', 'mute'])
@commands.has_permissions(administrator=True)
async def мут(ctx, member: discord.Member = None, amout: str = None, *, reason = None):
await member.edit(mute = True)
now = datetime.now()
emb = discord.Embed()
hour = now.hour
minute = now.minute
second = now.second
emb.set_author(name=member, icon_url=member.avatar_url)
emb.add_field(name='МУТ', value=f'{hour}:{minute}:{second}')
emb.set_footer(text=f'Был замутен администратором {ctx.author.name}', icon_url=ctx.author.avatar_url)
await ctx.send(embed=emb)
但是他只是代表服务器关闭了MICROPHONE,我需要你也不能写,不能只说话......
我正在建立一个关于 html 和 css 信息安全主题的网站,我想用一行分隔信息。我能够划出一条线,但它似乎有点弯曲......
* {
font-family: "Roboto", sans-serif;
}
body {
background-color: #1F1230;
color: white;
}
.connection {
background-color: #3e255e;
height: 165px;
width: 165px;
border: 0.5px solid #fff; /* Белая рамка */
border-radius: 10px; /* Радиус скругления */
}
.line {
margin: 166px;
border-left: 2px solid white;
height: 500px;
}
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🖥RemotePC💻</title>
<script src="eel.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" id="theme-link">
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
</head>
<body>
<div class="connection">
<br \>
<center><img src="images/lock.png"></center>
</div>
<div class="line"></div>
<script type="text/javascript">
window.onresize = function ()
{
window.resizeTo(1100, 625);
}
</script>
</body>
</html>
这是 CodePen上的完整代码 谁能帮忙!!!!!!