Adding wink

This commit is contained in:
Luke Robles 2020-03-21 17:20:06 -07:00
parent 668e72d295
commit e292ce0496
2 changed files with 12 additions and 1 deletions

View File

@ -378,6 +378,13 @@ async def on_message(message):
embed=generate_embed(embed_url=wallpaper.get_wall(message.content))
)
if message.content.startswith('!wink'):
await client.send_message(
message.channel,
embed=generate_embed(requests.get('https://some-random-api.ml/animu/wink').json()['link'])
)
if message.content.startswith('!youtube'):
query_string = parse.urlencode({'search_query': message.content.split()[1:]})

View File

@ -147,13 +147,17 @@ def get_help_message(method):
'Searches youtube for the query string and returns the first result',
'\nUsage: !youtube sick bmx tricks'
],
'wink': [
'returns a anime girl winking at you',
'\nUsage: !wink'
],
}
return "```css\n{}: {}\n```".format(method, ' '.join(supported_methods[method]))
def get_help_embed(client):
categories = {
'fun': ['clap', 'redanda', 'birb', 'youtube', 'dog', 'excuse', 'greentext', 'lewd', 'message', 'meme', 'homepage', 'pout', 'roll', 'smug', 'quake'],
'fun': ['clap', 'redanda', 'birb', 'youtube', 'dog', 'excuse', 'greentext', 'lewd', 'message', 'meme', 'homepage', 'pout', 'roll', 'smug', 'quake', 'wink',],
'util': ['8ball', 'decide', 'icon', 'wallpaper', 'weather', 'stock', 'tts', 'issue'],
'users': ['help', 'invite', 'purge', 'roles', 'source', 'minecraft'],
'admin': ['emoji', 'cleanup']