Adding the wolfram alpha functionality back
This commit is contained in:
parent
768abe5f83
commit
d7fb2589a4
@ -49,6 +49,12 @@ async def on_ready():
|
|||||||
# f'Hi {member.name}, welcome to my ths server!'
|
# f'Hi {member.name}, welcome to my ths server!'
|
||||||
# )
|
# )
|
||||||
|
|
||||||
|
@bot.command(name='ask')
|
||||||
|
async def ask(ctx):
|
||||||
|
import questions
|
||||||
|
await ctx.send(
|
||||||
|
questions.answer_question(ctx.message.content)
|
||||||
|
)
|
||||||
|
|
||||||
@bot.command(name='invite')
|
@bot.command(name='invite')
|
||||||
async def invite(ctx):
|
async def invite(ctx):
|
||||||
|
@ -13,6 +13,10 @@ def get_help_message(method):
|
|||||||
'Ask dragon bot a question and it will give you an 8ball response',
|
'Ask dragon bot a question and it will give you an 8ball response',
|
||||||
'\nUsage: !8ball Will I win the lottery tomorrow?'
|
'\nUsage: !8ball Will I win the lottery tomorrow?'
|
||||||
],
|
],
|
||||||
|
'ask': [
|
||||||
|
'Submits your query to wolfram alpha. If that cannot be answered, tries wikipedia\n',
|
||||||
|
'\nUsage: !ask 100lbs to KG'
|
||||||
|
],
|
||||||
'avatar': [
|
'avatar': [
|
||||||
'Returns the avatar for the mentioned user',
|
'Returns the avatar for the mentioned user',
|
||||||
'\nUsage: !avatar @somebody'
|
'\nUsage: !avatar @somebody'
|
||||||
@ -171,7 +175,7 @@ def get_help_message(method):
|
|||||||
def get_help_embed(bot):
|
def get_help_embed(bot):
|
||||||
categories = {
|
categories = {
|
||||||
'fun': ['ffxiv', 'clap', 'redpanda', 'birb', 'youtube', 'dog', 'excuse', 'greentext', 'lewd', 'message', 'meme', 'homepage', 'pout', 'roll', 'smug', 'quake', 'wink', 'verify'],
|
'fun': ['ffxiv', 'clap', 'redpanda', 'birb', 'youtube', 'dog', 'excuse', 'greentext', 'lewd', 'message', 'meme', 'homepage', 'pout', 'roll', 'smug', 'quake', 'wink', 'verify'],
|
||||||
'util': ['corona', 'emoji', '8ball', 'decide', 'info', 'icon', 'wallpaper', 'stock', 'tts', 'issue'],
|
'util': ['ask', 'corona', 'emoji', '8ball', 'decide', 'info', 'icon', 'wallpaper', 'stock', 'tts', 'issue'],
|
||||||
'users': ['help', 'invite', 'purge', 'roles', 'source'],
|
'users': ['help', 'invite', 'purge', 'roles', 'source'],
|
||||||
'admin': ['cleanup']
|
'admin': ['cleanup']
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user