diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-17 20:21:54 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-17 20:21:54 +0530 |
commit | e41940e92981cc0c91dbd6ed4f106958a7e34a47 (patch) | |
tree | 2d0ae3c7bf2f31fb8321c30bf69e3091b92adc12 /bot.py | |
parent | 1e5fdd147d9339f5580f41ba87512f80d4f5349e (diff) |
Diffstat (limited to 'bot.py')
-rw-r--r-- | bot.py | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -4,25 +4,29 @@ import random from dotenv import load_dotenv from discord.ext import commands -from henti import Numbers as n +from henti import Numbers load_dotenv() # load .env file TOKEN = os.getenv('DISCORD_TOKEN') -bot = commands.Bot(command_prefix='z!') # initialise the bot + +PREFIXES = ['z!', '?'] # prefixes for the bot's commands +bot = commands.Bot(command_prefix=PREFIXES) # initialise the bot with pre-defined prefixes # get title of henti -@bot.command(name='info', help='Get the title of doujin using the holy numbers') +@bot.command(name='info', help='Get the info about a doujin using the holy numbers') async def getInfo(ctx, sauce): - r = n(sauce).title() + doujin = Numbers(sauce) + r = doujin.title() await ctx.send(r) # short for the same -@bot.command(name='i', help='short fot z!title') +@bot.command(name='i', help='short fot z!info') async def getInfo(ctx, sauce): - r = n(sauce).title() + doujin = Numbers(sauce) + r = doujin.info() await ctx.send(r) |