1
0
Fork 0
mirror of synced 2024-07-02 13:10:32 +12:00

Added required setup method

This commit is contained in:
Phxntxm 2016-08-13 20:48:08 -05:00
parent c40d3e9fe5
commit 10a1c87e0e

View file

@ -62,3 +62,6 @@ class Strawpoll:
async with self.session.post(self.url, data=json.dumps(payload), headers=self.headers) as response:
data = await response.json()
await self.bot.say("Link for your new strawpoll: https://strawpoll.me/{}".format(data['id']))
def setup(bot)
bot.add_cog(Strawpoll(bot))