示例#1
0
 async def fact(self, ctx: Context) -> None:
     """Sends a random fact"""
     try:
         embed = Embed(description=nekos.fact(), color=0x690E8)
         await ctx.send(embed=embed)
     except nekos.errors.NothingFound:
         await ctx.send('Couldn\'t Fetch any "Fact" :(')
示例#2
0
 async def facts(self, ctx):
     some_fact = nekos.fact()
     e = discord.Embed(title="Facts", description=some_fact, color=0x36393E)
     e.set_thumbnail(
         url=
         "https://cdn.discordapp.com/attachments/560801259968266240/609132350051188749/1565298690301.png"
     )
     await ctx.send(embed=e)
示例#3
0
 async def fact(self, ctx: Context) -> None:
     """Sends a random fact"""
     try:
         embed = Embed(color=0x690E8)
         embed.set_image(url=n.fact())
         await ctx.send(embed=embed)
     except n.errors.NothingFound:
         await ctx.send('Couldn\'t Fetch any "Fact" :(')
示例#4
0
 async def randomfact(self, msg):
     """
     Get a random fact about random things
     Command: s.randomfact
     Example: s.randomfact
     """
     emb = discord.Embed(description=nekos.fact())
     await msg.send(embed=emb)
示例#5
0
 async def randomfact(self, ctx):
     fact = nekos.fact()
     em = discord.Embed(title="Random Facts",
                        color=discord.Color.blue(),
                        description=fact)
     em.set_footer(
         text="Powered by nekos.life",
         icon_url=
         "https://avatars2.githubusercontent.com/u/34457007?s=200&v=4")
     await ctx.send(embed=em)
示例#6
0
async def hmm(marcus):
    if marcus.fwd_from:
        return
    factmarcus = nekos.fact()
    await edit_or_reply(marcus, factmarcus)
示例#7
0
async def hmm(AuraX):
    if AuraX.fwd_from:
        return
    factAuraX = nekos.fact()
    await edit_or_reply(AuraX, factAuraX)
示例#8
0
async def hmm(exelon):
    if exelon.fwd_from:
        return
    factexelon = nekos.fact()
    await exelon.edit(factexelon)
示例#9
0
文件: funtxts.py 项目: Akarata/Backup
async def hmm(cat):
    if cat.fwd_from:
        return
    factcat = nekos.fact()
    await edit_or_reply(cat, factcat)
示例#10
0
文件: fun2.py 项目: TheVaders/InVade
async def hmm(hell):
    if hell.fwd_from:
        return
    facthell = nekos.fact()
    await eor(hell, facthell)
示例#11
0
async def hmm(hell):
    if hell.fwd_from:
        return
    facthell = nekos.fact()
    await edit_or_reply(hell, facthell)
示例#12
0
async def hmm(REBEL):
    if REBEL.fwd_from:
        return
    factREBEL = nekos.fact()
    await edit_or_reply(REBEL, factREBEL)
示例#13
0
async def hmm(cat):
    "Some random facts"
    factcat = nekos.fact()
    await edit_or_reply(cat, factcat)
示例#14
0
文件: fun.py 项目: mili-ae/Umi
 async def fact(self, ctx):
     """Sends you a random fact"""
     await ctx.trigger_typing()
     e = discord.Embed(title=":bookmark: | Random Fact!", description=nekos.fact(), color=self.bot.color)
     await ctx.send(embed=e)
示例#15
0
async def hmm(lion):
    if lion.fwd_from:
        return
    factlion = nekos.fact()
    await edit_or_reply(lion, factlion)
示例#16
0
async def fact(ctx):
    fact = nekos.fact()
    await ctx.send(fact)
示例#17
0
 async def fact(self, ctx: commands.Context) -> None:
     """Get yo facts right!"""
     await deleteMessage(ctx)
     await ctx.send(nekos.fact())
示例#18
0
文件: nekos.py 项目: gramuser/PepeBot
async def _(event):
    target = nekos.fact()
    await event.edit(f"`{target}`")
示例#19
0
def get_fact(): # Get a random fact from nekos.life
    FACTS = nekos.fact()
    return FACTS
示例#20
0
文件: funtxts.py 项目: Redkobra/catus
async def hmm(cat):
    if cat.fwd_from:
        return
    factcat = nekos.fact()
    await cat.edit(factcat)
示例#21
0
async def hmm(dark):
    if dark.fwd_from:
        return
    factdark = nekos.fact()
    await edit_or_reply(dark, factdark)
示例#22
0
async def hmm(mega):
    if mega.fwd_from:
        return
    factmega = nekos.fact()
    await edit_or_reply(mega, factmega)
示例#23
0
 async def nfact(self, ctx):
     """Gives you a random fact."""
     fact = nekos.fact()
     await ctx.send('Here is a random fact for you:\n``{}``'.format(fact))
示例#24
0
async def hmm(W2H):
    if W2H.fwd_from:
        return
    factW2H = nekos.fact()
    await edit_or_reply(W2H, factW2H)
示例#25
0
 async def funfact(self, ctx):
     "sends a fun fact"
     await ctx.send(nekos.fact())
示例#26
0
async def hmm(shinchan):
    if shinchan.fwd_from:
        return
    factshinchan = nekos.fact()
    await edit_or_reply(shinchan, factshinchan)
示例#27
0
async def hmm(LEGEND):
    if LEGEND.fwd_from:
        return
    factLEGEND = nekos.fact()
    await edit_or_reply(LEGEND, factLEGEND)
示例#28
0
async def hmm(mafia):
    if mafia.fwd_from:
        return
    factmafia = nekos.fact()
    await edit_or_reply(mafia, factmafia)