reformat
This commit is contained in:
1 parent
783b38e28d
commit
32ee918415
10 files changed
+88
-71
No files matched your search
+1
-9
@@ -6,19 +6,11 @@ from typing import List, Union
|
||||
import aiohttp
|
||||
import discord
|
||||
|
||||
TESTID = 356099868638445578
|
||||
ID = int(base64.b64decode(os.getenv("TOKEN").split(".")[0]))
|
||||
|
||||
|
||||
async def get_webhook(
|
||||
channel: Union[discord.TextChannel, discord.ForumChannel, discord.VoiceChannel]
|
||||
) -> discord.Webhook:
|
||||
"""Get a webhook created by bot in the channel"""
|
||||
if ID != TESTID:
|
||||
wname = "ゼロ"
|
||||
else:
|
||||
wname = "ゼロ~"
|
||||
|
||||
wname = "brahmos"
|
||||
hooks: List[discord.Webhook] = await channel.webhooks()
|
||||
for hook in hooks:
|
||||
if hook.name == wname:
|
||||
|
||||
Reference in new issue
Block a user