-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
62 lines (44 loc) · 3.36 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import discord
import os
from dotenv import load_dotenv
load_dotenv()
intents = discord.Intents.default()
intents.message_content = True
client = discord.Client(intents=intents)
tree = discord.app_commands.CommandTree(client)
@tree.command(name = "runs", description = "List the Moon Knight runs")
async def runs_command(interaction):
await interaction.response.send_message("Moon Knight (1980)\nFist of Khonshu: Moon Knight (1985)\nMarc Spector: Moon Knight (1989)\nMoon Knight: Resurrection War (1998)\nMoon Knight: High Strangers (1999)\nMoon Knight: The Bottom (2006)\nVengeance of the Moon Knight (2009)\nMoon Knight (2011)\nMoon Knight: From the Dead (2014)\nMoon Knight: Welcome to New Egypt (2016)\nMoon Knight: Midnight Mission (2021)")
@tree.command(name = "annuals", description = "List the Moon Knight annuals")
async def runs_command(interaction):
await interaction.response.send_message('Moon Knight Annual (2007)\nMoon Knight Annual (2019)\nMoon Knight Annual (2022)')
@tree.command(name = "limited", description = "List the Moon Knight limited series")
async def runs_command(interaction):
await interaction.response.send_message('Moon Knight Special Edition (1983)\nShadowland: Moon Knight (2010)\nMoon Knight: Black, White & Blood (2022)')
@tree.command(name = "oneshots", description = "List the Moon Knight one shots")
async def runs_command(interaction):
await interaction.response.send_message('Moon Knight: Divided We Fall (1992)\nMarc Spector: Moon Knight Special Edition (1992)\nMoon Knight: Silent Knight (2008)\nMoon Knight Saga (2009)\nDevil\'s Reign: Moon Knight (2022)')
@tree.command(name = "teamups", description = "List the Moon Knight team ups")
async def runs_command(interaction):
await interaction.response.send_message('Ms. Marvel & Moon Knight (2022)')
@client.event
async def on_ready():
await tree.sync()
print(f'We have logged in as {client.user}')
@client.event
async def on_message(message):
if message.author == client.user:
return
elif message.content.startswith('ap!help'):
await message.channel.send('Commands:\n ap!runs\n ap!annuals\n ap!limited\n ap!oneshots\n ap!teamups')
elif message.content.startswith('ap!runs'):
await message.channel.send('Moon Knight (1980)\nFist of Khonshu: Moon Knight (1985)\nMarc Spector: Moon Knight (1989)\nMoon Knight: Resurrection War (1998)\nMoon Knight: High Strangers (1999)\nMoon Knight: The Bottom (2006)\nVengeance of the Moon Knight (2009)\nMoon Knight (2011)\nMoon Knight: From the Dead (2014)\nMoon Knight: Welcome to New Egypt (2016)\nMoon Knight: Midnight Mission (2021)')
elif message.content.startswith('ap!annuals'):
await message.channel.send('Moon Knight Annual (2007)\nMoon Knight Annual (2019)\nMoon Knight Annual (2022)')
elif message.content.startswith('ap!limited'):
await message.channel.send('Moon Knight Special Edition (1983)\nShadowland: Moon Knight (2010)\nMoon Knight: Black, White & Blood (2022)')
elif message.content.startswith('ap!oneshots'):
await message.channel.send('Moon Knight: Divided We Fall (1992)\nMarc Spector: Moon Knight Special Edition (1992)\nMoon Knight: Silent Knight (2008)\nMoon Knight Saga (2009)\nDevil\'s Reign: Moon Knight (2022)')
elif message.content.startswith('ap!teamups'):
await message.channel.send('Ms. Marvel & Moon Knight (2022)')
client.run(os.getenv('TOKEN'))