add after hours pricing
This commit is contained in:
parent
b85ed86cb5
commit
a59c12dff5
@ -43,7 +43,6 @@ class ActualUtils(commands.Cog):
|
|||||||
@option(name="title", requried=True, description="The title of the issue")
|
@option(name="title", requried=True, description="The title of the issue")
|
||||||
@option(name="description", require=True, description="The body of the issue")
|
@option(name="description", require=True, description="The body of the issue")
|
||||||
async def issue(self, ctx: commands.Context):
|
async def issue(self, ctx: commands.Context):
|
||||||
|
|
||||||
post_args = {"title": title, "description": description}
|
post_args = {"title": title, "description": description}
|
||||||
|
|
||||||
headers = {"PRIVATE-TOKEN": os.getenv("gitlab_token")}
|
headers = {"PRIVATE-TOKEN": os.getenv("gitlab_token")}
|
||||||
@ -67,7 +66,6 @@ class ActualUtils(commands.Cog):
|
|||||||
required=True,
|
required=True,
|
||||||
)
|
)
|
||||||
async def define(self, ctx, word):
|
async def define(self, ctx, word):
|
||||||
|
|
||||||
import define_word
|
import define_word
|
||||||
|
|
||||||
embed = define_word.get_definition(word)
|
embed = define_word.get_definition(word)
|
||||||
@ -75,7 +73,6 @@ class ActualUtils(commands.Cog):
|
|||||||
|
|
||||||
@commands.command(name="tts")
|
@commands.command(name="tts")
|
||||||
async def tts(self, ctx: commands.Context):
|
async def tts(self, ctx: commands.Context):
|
||||||
|
|
||||||
import tts
|
import tts
|
||||||
|
|
||||||
if ctx.message.content.split()[1] == "langs":
|
if ctx.message.content.split()[1] == "langs":
|
||||||
@ -159,7 +156,6 @@ class ActualUtils(commands.Cog):
|
|||||||
default="California",
|
default="California",
|
||||||
)
|
)
|
||||||
async def corona(self, ctx: commands.Context, location):
|
async def corona(self, ctx: commands.Context, location):
|
||||||
|
|
||||||
import corona
|
import corona
|
||||||
|
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
@ -182,7 +178,6 @@ class ActualUtils(commands.Cog):
|
|||||||
default=False,
|
default=False,
|
||||||
)
|
)
|
||||||
async def stock(self, ctx, symbols, verbose):
|
async def stock(self, ctx, symbols, verbose):
|
||||||
|
|
||||||
import stock
|
import stock
|
||||||
|
|
||||||
results = stock.parse_message(symbols, verbose)
|
results = stock.parse_message(symbols, verbose)
|
||||||
|
@ -11,56 +11,48 @@ class AnimalFunctions(commands.Cog):
|
|||||||
guild_ids=None, name="redpanda", description="Posts a photo of a redpanda"
|
guild_ids=None, name="redpanda", description="Posts a photo of a redpanda"
|
||||||
)
|
)
|
||||||
async def redpanda(self, ctx: commands.Context):
|
async def redpanda(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.get_red_panda())
|
await ctx.respond(animals.get_red_panda())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None, name="panda", description="Posts a photo of a panda"
|
guild_ids=None, name="panda", description="Posts a photo of a panda"
|
||||||
)
|
)
|
||||||
async def panda(self, ctx: commands.Context):
|
async def panda(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.get_panda())
|
await ctx.respond(animals.get_panda())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None, name="koala", description="Posts a photo of a koala"
|
guild_ids=None, name="koala", description="Posts a photo of a koala"
|
||||||
)
|
)
|
||||||
async def koala(self, ctx: commands.Context):
|
async def koala(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.get_koala())
|
await ctx.respond(animals.get_koala())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None, name="racoon", description="Posts a photo of a racoon"
|
guild_ids=None, name="racoon", description="Posts a photo of a racoon"
|
||||||
)
|
)
|
||||||
async def racoon(self, ctx: commands.Context):
|
async def racoon(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.get_racoon())
|
await ctx.respond(animals.get_racoon())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None, name="fox", description="Posts a photo of a fox"
|
guild_ids=None, name="fox", description="Posts a photo of a fox"
|
||||||
)
|
)
|
||||||
async def fox(self, ctx: commands.Context):
|
async def fox(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.get_fox())
|
await ctx.respond(animals.get_fox())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None, name="cat", description="Posts a photo of a cat"
|
guild_ids=None, name="cat", description="Posts a photo of a cat"
|
||||||
)
|
)
|
||||||
async def cat(self, ctx: commands.Context):
|
async def cat(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.get_cat())
|
await ctx.respond(animals.get_cat())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None, name="kangaroo", description="Posts a photo of a kangaroo"
|
guild_ids=None, name="kangaroo", description="Posts a photo of a kangaroo"
|
||||||
)
|
)
|
||||||
async def kangaroo(self, ctx: commands.Context):
|
async def kangaroo(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.get_kangaroo())
|
await ctx.respond(animals.get_kangaroo())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None, name="dog", description="Posts a photo of a dog"
|
guild_ids=None, name="dog", description="Posts a photo of a dog"
|
||||||
)
|
)
|
||||||
async def dog(self, ctx: commands.Context):
|
async def dog(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.get_dog())
|
await ctx.respond(animals.get_dog())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
@ -73,21 +65,18 @@ class AnimalFunctions(commands.Cog):
|
|||||||
guild_ids=None, name="birb", description="Posts a photo of a birb"
|
guild_ids=None, name="birb", description="Posts a photo of a birb"
|
||||||
)
|
)
|
||||||
async def birb(self, ctx: commands.Context):
|
async def birb(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.get_birb())
|
await ctx.respond(animals.get_birb())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None, name="cowboy", description="Posts a photo of a bad dog"
|
guild_ids=None, name="cowboy", description="Posts a photo of a bad dog"
|
||||||
)
|
)
|
||||||
async def cowboy(self, ctx: commands.Context):
|
async def cowboy(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(animals.cowboy())
|
await ctx.respond(animals.cowboy())
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
guild_ids=None, name="dale", description="Posts a photo of the goodest boy"
|
guild_ids=None, name="dale", description="Posts a photo of the goodest boy"
|
||||||
)
|
)
|
||||||
async def dale(self, ctx: commands.Context):
|
async def dale(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(file=discord.File(animals.dale()))
|
await ctx.respond(file=discord.File(animals.dale()))
|
||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
|
@ -23,7 +23,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="pout", description="Posts a gif of an anime girl pouting"
|
guild_ids=None, name="pout", description="Posts a gif of an anime girl pouting"
|
||||||
)
|
)
|
||||||
async def pout(self, ctx: commands.Context):
|
async def pout(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="blush")
|
embed_url=core_utils.waifu_pics(endpoint="blush")
|
||||||
@ -34,7 +33,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="yeet", description="Posts a gif of an anime girl yeeting"
|
guild_ids=None, name="yeet", description="Posts a gif of an anime girl yeeting"
|
||||||
)
|
)
|
||||||
async def yeet(self, ctx: commands.Context):
|
async def yeet(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="yeet")
|
embed_url=core_utils.waifu_pics(endpoint="yeet")
|
||||||
@ -47,7 +45,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
description="Posts a gif of an anime girl cuddleing",
|
description="Posts a gif of an anime girl cuddleing",
|
||||||
)
|
)
|
||||||
async def cuddle(self, ctx: commands.Context):
|
async def cuddle(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="cuddle")
|
embed_url=core_utils.waifu_pics(endpoint="cuddle")
|
||||||
@ -58,7 +55,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="awoo", description="Posts a gif of a dog/anime girl"
|
guild_ids=None, name="awoo", description="Posts a gif of a dog/anime girl"
|
||||||
)
|
)
|
||||||
async def awoo(self, ctx: commands.Context):
|
async def awoo(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="awoo")
|
embed_url=core_utils.waifu_pics(endpoint="awoo")
|
||||||
@ -71,7 +67,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
description="Posts a gif of an anime bonking someone on the head",
|
description="Posts a gif of an anime bonking someone on the head",
|
||||||
)
|
)
|
||||||
async def bonk(self, ctx: commands.Context):
|
async def bonk(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="bonk")
|
embed_url=core_utils.waifu_pics(endpoint="bonk")
|
||||||
@ -82,7 +77,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="glomp", description="Posts a gif of an aggressive hug"
|
guild_ids=None, name="glomp", description="Posts a gif of an aggressive hug"
|
||||||
)
|
)
|
||||||
async def glomp(self, ctx: commands.Context):
|
async def glomp(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="glomp")
|
embed_url=core_utils.waifu_pics(endpoint="glomp")
|
||||||
@ -93,7 +87,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="pout", description="Posts a gif of an anime girl pouting"
|
guild_ids=None, name="pout", description="Posts a gif of an anime girl pouting"
|
||||||
)
|
)
|
||||||
async def pout(self, ctx: commands.Context):
|
async def pout(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="blush")
|
embed_url=core_utils.waifu_pics(endpoint="blush")
|
||||||
@ -104,7 +97,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="waifu", description="Posts a gif of an anime girl"
|
guild_ids=None, name="waifu", description="Posts a gif of an anime girl"
|
||||||
)
|
)
|
||||||
async def waifu(self, ctx: commands.Context):
|
async def waifu(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="waifu")
|
embed_url=core_utils.waifu_pics(endpoint="waifu")
|
||||||
@ -115,7 +107,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="neko", description="Posts a gif of a cat/anime girl"
|
guild_ids=None, name="neko", description="Posts a gif of a cat/anime girl"
|
||||||
)
|
)
|
||||||
async def neko(self, ctx: commands.Context):
|
async def neko(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="neko")
|
embed_url=core_utils.waifu_pics(endpoint="neko")
|
||||||
@ -128,7 +119,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
description="Posts a gif of an anime girl bullying someone",
|
description="Posts a gif of an anime girl bullying someone",
|
||||||
)
|
)
|
||||||
async def bully(self, ctx: commands.Context):
|
async def bully(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="bully")
|
embed_url=core_utils.waifu_pics(endpoint="bully")
|
||||||
@ -139,7 +129,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="cry", description="Posts a gif of an anime girl crying"
|
guild_ids=None, name="cry", description="Posts a gif of an anime girl crying"
|
||||||
)
|
)
|
||||||
async def cry(self, ctx: commands.Context):
|
async def cry(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="cry")
|
embed_url=core_utils.waifu_pics(endpoint="cry")
|
||||||
@ -150,7 +139,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="hug", description="Posts a gif of an anime girl huging"
|
guild_ids=None, name="hug", description="Posts a gif of an anime girl huging"
|
||||||
)
|
)
|
||||||
async def hug(self, ctx: commands.Context):
|
async def hug(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="hug")
|
embed_url=core_utils.waifu_pics(endpoint="hug")
|
||||||
@ -161,7 +149,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="kiss", description="Posts a gif of an anime girl kissing"
|
guild_ids=None, name="kiss", description="Posts a gif of an anime girl kissing"
|
||||||
)
|
)
|
||||||
async def kiss(self, ctx: commands.Context):
|
async def kiss(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="kiss")
|
embed_url=core_utils.waifu_pics(endpoint="kiss")
|
||||||
@ -172,7 +159,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="lick", description="Posts a gif of an anime girl licking"
|
guild_ids=None, name="lick", description="Posts a gif of an anime girl licking"
|
||||||
)
|
)
|
||||||
async def lick(self, ctx: commands.Context):
|
async def lick(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="lick")
|
embed_url=core_utils.waifu_pics(endpoint="lick")
|
||||||
@ -185,7 +171,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
description="Posts a gif of an anime girl pating someone on the head",
|
description="Posts a gif of an anime girl pating someone on the head",
|
||||||
)
|
)
|
||||||
async def pat(self, ctx: commands.Context):
|
async def pat(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="pat")
|
embed_url=core_utils.waifu_pics(endpoint="pat")
|
||||||
@ -198,7 +183,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
description="Posts a gif of an anime girl being smug",
|
description="Posts a gif of an anime girl being smug",
|
||||||
)
|
)
|
||||||
async def smug(self, ctx: commands.Context):
|
async def smug(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="smug")
|
embed_url=core_utils.waifu_pics(endpoint="smug")
|
||||||
@ -211,7 +195,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
description="Posts a gif of an anime girl highfiveing",
|
description="Posts a gif of an anime girl highfiveing",
|
||||||
)
|
)
|
||||||
async def highfive(self, ctx: commands.Context):
|
async def highfive(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="highfive")
|
embed_url=core_utils.waifu_pics(endpoint="highfive")
|
||||||
@ -222,7 +205,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="nom", description="Posts a gif of an anime girl eating"
|
guild_ids=None, name="nom", description="Posts a gif of an anime girl eating"
|
||||||
)
|
)
|
||||||
async def nom(self, ctx: commands.Context):
|
async def nom(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="nom")
|
embed_url=core_utils.waifu_pics(endpoint="nom")
|
||||||
@ -235,7 +217,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
description="Posts a gif of an anime girl biting someone",
|
description="Posts a gif of an anime girl biting someone",
|
||||||
)
|
)
|
||||||
async def bite(self, ctx: commands.Context):
|
async def bite(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="bite")
|
embed_url=core_utils.waifu_pics(endpoint="bite")
|
||||||
@ -246,7 +227,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="slap", description="Posts a gif of an anime girl slapping"
|
guild_ids=None, name="slap", description="Posts a gif of an anime girl slapping"
|
||||||
)
|
)
|
||||||
async def slap(self, ctx: commands.Context):
|
async def slap(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="slap")
|
embed_url=core_utils.waifu_pics(endpoint="slap")
|
||||||
@ -257,7 +237,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="wink", description="Posts a gif of an anime girl winking"
|
guild_ids=None, name="wink", description="Posts a gif of an anime girl winking"
|
||||||
)
|
)
|
||||||
async def wink(self, ctx: commands.Context):
|
async def wink(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="wink")
|
embed_url=core_utils.waifu_pics(endpoint="wink")
|
||||||
@ -268,7 +247,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="poke", description="Posts a gif of an anime girl pokeing"
|
guild_ids=None, name="poke", description="Posts a gif of an anime girl pokeing"
|
||||||
)
|
)
|
||||||
async def poke(self, ctx: commands.Context):
|
async def poke(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="poke")
|
embed_url=core_utils.waifu_pics(endpoint="poke")
|
||||||
@ -279,7 +257,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
guild_ids=None, name="dance", description="Posts a gif of an anime girl dancing"
|
guild_ids=None, name="dance", description="Posts a gif of an anime girl dancing"
|
||||||
)
|
)
|
||||||
async def dance(self, ctx: commands.Context):
|
async def dance(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="dance")
|
embed_url=core_utils.waifu_pics(endpoint="dance")
|
||||||
@ -292,7 +269,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
description="Posts a gif of an anime girl cringeing",
|
description="Posts a gif of an anime girl cringeing",
|
||||||
)
|
)
|
||||||
async def cringe(self, ctx: commands.Context):
|
async def cringe(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="cringe")
|
embed_url=core_utils.waifu_pics(endpoint="cringe")
|
||||||
@ -305,7 +281,6 @@ class AnimeGirls(commands.Cog):
|
|||||||
description="Posts a gif of an anime girl blushing",
|
description="Posts a gif of an anime girl blushing",
|
||||||
)
|
)
|
||||||
async def blush(self, ctx: commands.Context):
|
async def blush(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=core_utils.generate_embed(
|
embed=core_utils.generate_embed(
|
||||||
embed_url=core_utils.waifu_pics(endpoint="blush")
|
embed_url=core_utils.waifu_pics(endpoint="blush")
|
||||||
|
@ -22,7 +22,6 @@ class Cheeky(commands.Cog):
|
|||||||
description="Separate your choices with 'or', or enter a singular choice to get a yes/no answer.",
|
description="Separate your choices with 'or', or enter a singular choice to get a yes/no answer.",
|
||||||
)
|
)
|
||||||
async def decide(self, ctx, input_string):
|
async def decide(self, ctx, input_string):
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
choices = input_string.split(" or ")
|
choices = input_string.split(" or ")
|
||||||
@ -68,7 +67,6 @@ class Cheeky(commands.Cog):
|
|||||||
description="Posts a greentext image",
|
description="Posts a greentext image",
|
||||||
)
|
)
|
||||||
async def greentext(self, ctx: commands.Context):
|
async def greentext(self, ctx: commands.Context):
|
||||||
|
|
||||||
import get_from_reddit
|
import get_from_reddit
|
||||||
|
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
@ -124,7 +122,6 @@ class Cheeky(commands.Cog):
|
|||||||
name="bottom", description="The bottom text to put on the meme", required=True
|
name="bottom", description="The bottom text to put on the meme", required=True
|
||||||
)
|
)
|
||||||
async def meme(self, ctx: commands.Context, template, top, bottom):
|
async def meme(self, ctx: commands.Context, template, top, bottom):
|
||||||
|
|
||||||
import meme_gen
|
import meme_gen
|
||||||
|
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
@ -147,7 +144,6 @@ class Cheeky(commands.Cog):
|
|||||||
|
|
||||||
@commands.slash_command(name="donate")
|
@commands.slash_command(name="donate")
|
||||||
async def donate(self, ctx: commands.Context):
|
async def donate(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
"https://paypal.me/ldooks\nhttps://venmo.com/ldooks\nhttps://cash.me/$ldooks"
|
"https://paypal.me/ldooks\nhttps://venmo.com/ldooks\nhttps://cash.me/$ldooks"
|
||||||
)
|
)
|
||||||
@ -164,7 +160,6 @@ class Cheeky(commands.Cog):
|
|||||||
max_length=300,
|
max_length=300,
|
||||||
)
|
)
|
||||||
async def tiktok(self, ctx: commands.Context, input: str):
|
async def tiktok(self, ctx: commands.Context, input: str):
|
||||||
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
@ -196,7 +191,6 @@ class Cheeky(commands.Cog):
|
|||||||
|
|
||||||
@commands.slash_command(guild_ids=None, name="nft", description="Returns an nft")
|
@commands.slash_command(guild_ids=None, name="nft", description="Returns an nft")
|
||||||
async def nft(self, ctx: commands.Context):
|
async def nft(self, ctx: commands.Context):
|
||||||
|
|
||||||
import nft
|
import nft
|
||||||
|
|
||||||
result = nft.get_nft()
|
result = nft.get_nft()
|
||||||
@ -208,7 +202,6 @@ class Cheeky(commands.Cog):
|
|||||||
)
|
)
|
||||||
@option(name="question", description="Your question", required=True)
|
@option(name="question", description="Your question", required=True)
|
||||||
async def eight_ball(self, ctx: commands.Context, question: str):
|
async def eight_ball(self, ctx: commands.Context, question: str):
|
||||||
|
|
||||||
import eight_ball
|
import eight_ball
|
||||||
|
|
||||||
result = eight_ball.check_8ball(question)
|
result = eight_ball.check_8ball(question)
|
||||||
@ -233,7 +226,6 @@ class Cheeky(commands.Cog):
|
|||||||
required=True,
|
required=True,
|
||||||
)
|
)
|
||||||
async def twitter(self, ctx: commands.Context, message_id: str):
|
async def twitter(self, ctx: commands.Context, message_id: str):
|
||||||
|
|
||||||
message = await ctx.channel.fetch_message(message_id)
|
message = await ctx.channel.fetch_message(message_id)
|
||||||
author_avatar = message.author.avatar
|
author_avatar = message.author.avatar
|
||||||
response = requests.get(
|
response = requests.get(
|
||||||
|
@ -86,7 +86,6 @@ class ServerUtils(commands.Cog):
|
|||||||
description="Returns a link to the worlde luke is hosting",
|
description="Returns a link to the worlde luke is hosting",
|
||||||
)
|
)
|
||||||
async def wordle(self, ctx: commands.Context):
|
async def wordle(self, ctx: commands.Context):
|
||||||
|
|
||||||
await ctx.respond("https://wordle.luker.gq")
|
await ctx.respond("https://wordle.luker.gq")
|
||||||
|
|
||||||
@commands.slash_command(guild_ids=None, name="dot", description="dot")
|
@commands.slash_command(guild_ids=None, name="dot", description="dot")
|
||||||
@ -243,7 +242,6 @@ class ServerUtils(commands.Cog):
|
|||||||
|
|
||||||
@commands.command(name="help")
|
@commands.command(name="help")
|
||||||
async def help(self, ctx: commands.Context, method=None):
|
async def help(self, ctx: commands.Context, method=None):
|
||||||
|
|
||||||
import help_methods
|
import help_methods
|
||||||
|
|
||||||
if method:
|
if method:
|
||||||
|
@ -29,7 +29,6 @@ class StableDiffusion(commands.Cog):
|
|||||||
async def sd(
|
async def sd(
|
||||||
self, ctx: commands.Context, positive_prompt: str, negative_prompt: str
|
self, ctx: commands.Context, positive_prompt: str, negative_prompt: str
|
||||||
):
|
):
|
||||||
|
|
||||||
if ctx.channel.name == "stable-diffusion" or ctx.channel.name == "bot-testing":
|
if ctx.channel.name == "stable-diffusion" or ctx.channel.name == "bot-testing":
|
||||||
import socket
|
import socket
|
||||||
import stable_diffusion
|
import stable_diffusion
|
||||||
|
@ -6,7 +6,6 @@ my_id = 144986109804412928
|
|||||||
|
|
||||||
|
|
||||||
def download_image(url, path=None):
|
def download_image(url, path=None):
|
||||||
|
|
||||||
request = requests.get(url)
|
request = requests.get(url)
|
||||||
suffix_list = [
|
suffix_list = [
|
||||||
"jpeg",
|
"jpeg",
|
||||||
|
@ -3,7 +3,6 @@ import random
|
|||||||
|
|
||||||
|
|
||||||
def get_nft():
|
def get_nft():
|
||||||
|
|
||||||
# To find the collection's address, you have to do a curl against the API
|
# To find the collection's address, you have to do a curl against the API
|
||||||
# curl -s --request GET --url https://api.opensea.io/api/v1/collection/<collection name here> | | jq -r .[].primary_asset_contracts[].address
|
# curl -s --request GET --url https://api.opensea.io/api/v1/collection/<collection name here> | | jq -r .[].primary_asset_contracts[].address
|
||||||
# Alternatively, go to some asset on Opensea and take the chunk of the URL after "assets":
|
# Alternatively, go to some asset on Opensea and take the chunk of the URL after "assets":
|
||||||
|
16
app/stock.py
16
app/stock.py
@ -111,9 +111,19 @@ def get_stock(share_name, verbose=False):
|
|||||||
embed.set_thumbnail(url=meme_url)
|
embed.set_thumbnail(url=meme_url)
|
||||||
embed.set_author(name=request["shortName"])
|
embed.set_author(name=request["shortName"])
|
||||||
|
|
||||||
embed.add_field(
|
if request["marketState"] == "POST":
|
||||||
name="Current price", value="$%s" % request["regularMarketPrice"], inline=False
|
embed.add_field(
|
||||||
)
|
name="After Hours price",
|
||||||
|
value="$%s" % request["postMarketPrice"],
|
||||||
|
inline=False,
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
embed.add_field(
|
||||||
|
name="Current price",
|
||||||
|
value="$%s" % request["regularMarketPrice"],
|
||||||
|
inline=False,
|
||||||
|
)
|
||||||
|
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="Opening price", value="$%s" % request["regularMarketOpen"], inline=False
|
name="Opening price", value="$%s" % request["regularMarketOpen"], inline=False
|
||||||
)
|
)
|
||||||
|
@ -49,6 +49,7 @@ async def get_msreg(track):
|
|||||||
events[track].append(event_object)
|
events[track].append(event_object)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# sort track events by date
|
# sort track events by date
|
||||||
def date_to_datetime(input):
|
def date_to_datetime(input):
|
||||||
return datetime.strptime(input["event_date"], "%Y-%m-%d")
|
return datetime.strptime(input["event_date"], "%Y-%m-%d")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user