#1 add gif command
This commit is contained in:
parent
49c5960a9c
commit
1bc5f97f79
1 changed files with 2 additions and 2 deletions
|
@ -65,9 +65,9 @@ class Mybot(commands.Cog):
|
||||||
api_response.to_dict()['data'][0]
|
api_response.to_dict()['data'][0]
|
||||||
get_url = random.choice(api_response.to_dict()['data'])
|
get_url = random.choice(api_response.to_dict()['data'])
|
||||||
get_url['url']
|
get_url['url']
|
||||||
ctx.channel.send(get_url['url'])
|
await ctx.channel.send(get_url['url'])
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
ctx.send("Exception when calling DefaultApi->gifs_search_get: %s\n" % e)
|
await ctx.channel.send("Exception when calling DefaultApi->gifs_search_get: %s\n" % e)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def welcome(self, ctx):
|
async def welcome(self, ctx):
|
||||||
|
|
Loading…
Reference in a new issue