예제 #1
0
 async def twitch(self, ctx, userid, link):
     # Allow tagging to work as well
     if len(ctx.message.mentions) == 1:
         userid = ctx.message.mentions[0].id
     twitch.add(userid, link)
     await ctx.send("{}'s Twitch is toegevoegd aan de database.".format(
         self.utilsCog.getDisplayName(ctx, userid)))
예제 #2
0
    async def twitchadd(self, ctx, link):
        if "twitch.tv" not in link.lower():
            link = "https://www.twitch.tv/{}".format(link)

        twitch.add(ctx.author.id, link)
        await ctx.message.add_reaction("✅")