-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.py
49 lines (33 loc) · 1.05 KB
/
bot.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
from discord.ext import commands
from armor import getFormattedArmorOutput
from monsters import getFormattedMonsterOutput
from settings.config import TOKEN
description = '''a dumb bot'''
bot = commands.Bot(command_prefix='!', description=description)
@bot.event
async def on_ready():
print('hi')
@bot.command()
async def hunt(ctx, *, monsterName: str):
"""Looks up a monster and displays it's weaknesses."""
await ctx.send(getFormattedMonsterOutput(monsterName))
@bot.command()
async def armor(ctx, *, skill: str):
"""Finds all armor that has given skill"""
await ctx.send(getFormattedArmorOutput(skill))
@bot.command()
async def bees(ctx):
"""Talks about bees"""
await ctx.send('Get on that shit yo!')
@bot.command()
async def menu(ctx):
"""Displays commands"""
await ctx.send('!hunt')
await ctx.send('!armor')
await ctx.send('!bees')
await ctx.send('!order')
@bot.command()
async def order(ctx):
"""Food skills calculator"""
await ctx.send('Under construction, please be patient.')
bot.run(TOKEN)