Ejemplo n.º 1
0
 async def github(self, ctx, userid, link):
     # Allow tagging to work as well
     if len(ctx.message.mentions) == 1:
         userid = ctx.message.mentions[0].id
     githubs.add(userid, link)
     await ctx.send("{}'s GitHub is toegevoegd aan de database.".format(
         self.utilsCog.getDisplayName(ctx, userid)))
Ejemplo n.º 2
0
    async def githubadd(self, ctx, link):
        if "github.com" not in link.lower(
        ) and "github.ugent.be" not in link.lower(
        ) and "gitlab.com" not in link.lower():
            link = "https://github.com/{}".format(link)

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