-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
30 lines (20 loc) · 630 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
import discord
from discord.ext.commands import Bot, Cog, has_role
from pyslash import slash_command_wrapper, commands_init, update_commands_list
b = Bot("")
b.remove_command("help")
commands_init(b)
class Content(Cog):
@staticmethod
@has_role(858744856368775198)
@slash_command_wrapper()
async def hello_world(ctx, member: discord.Member):
"""POG"""
ctx.ephemeral = True
await ctx.reply(f"Hello World! You tagged someone with the nickname {member.nick}!")
b.add_cog(Content())
@b.event
async def on_ready():
await update_commands_list(b)
b.run(os.environ["TOKEN"])