Added required setup method
This commit is contained in:
parent
c40d3e9fe5
commit
10a1c87e0e
1 changed files with 3 additions and 0 deletions
|
@ -62,3 +62,6 @@ class Strawpoll:
|
||||||
async with self.session.post(self.url, data=json.dumps(payload), headers=self.headers) as response:
|
async with self.session.post(self.url, data=json.dumps(payload), headers=self.headers) as response:
|
||||||
data = await response.json()
|
data = await response.json()
|
||||||
await self.bot.say("Link for your new strawpoll: https://strawpoll.me/{}".format(data['id']))
|
await self.bot.say("Link for your new strawpoll: https://strawpoll.me/{}".format(data['id']))
|
||||||
|
|
||||||
|
def setup(bot)
|
||||||
|
bot.add_cog(Strawpoll(bot))
|
||||||
|
|
Loading…
Reference in a new issue