コード例 #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
ファイル: funtxt.py プロジェクト: REBEL725/AuraXUserbot
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
ファイル: funtxt.py プロジェクト: GhostHellboy/plugs
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
ファイル: funtxts.py プロジェクト: mrsammy892018/lionuserbot
async def hmm(lion):
    if lion.fwd_from:
        return
    factlion = nekos.fact()
    await edit_or_reply(lion, factlion)
コード例 #16
0
ファイル: main.py プロジェクト: lolicop123/billy-bot
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
ファイル: nekos.py プロジェクト: Zenrac/putin-s-data
 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
ファイル: funtxt.py プロジェクト: W2HGalaxy-OP/W2HUserbot
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
ファイル: funtxt.py プロジェクト: shiwabot/anieBot
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)