Lock star citizen commands to my serveR

This commit is contained in:
Luke Robles 2024-02-13 09:42:20 -08:00
parent c07201a330
commit 201b39669f
3 changed files with 13 additions and 11 deletions

View File

@ -19,8 +19,9 @@ cogfiles = [
for cogfile in cogfiles:
bot.load_extension(cogfile)
# import requests_cache
# requests_cache.install_cache(expire_after=300)
import requests_cache
requests_cache.install_cache(expire_after=300)
@bot.event

View File

@ -6,6 +6,7 @@ import os
import requests
import json
import core_utils
import star_citizen
if os.getenv("DRAGON_ENV") == "prod":
@ -24,7 +25,7 @@ class StarCitizen(commands.Cog):
)
@starcitizen.command(
guild_ids=None,
guild_ids=core_utils.my_guilds,
name="medpens",
description="Posts an infographic about which medpens to use for which injuries in Star Citizen",
)
@ -32,7 +33,7 @@ class StarCitizen(commands.Cog):
await ctx.respond("https://i.redd.it/lfswlf5c13t71.png")
@starcitizen.command(
guild_ids=None,
guild_ids=core_utils.my_guilds,
name="drugs",
description="Returns a list of all the drugs in game sorted by their price",
)
@ -85,7 +86,7 @@ class StarCitizen(commands.Cog):
return all_ships
@starcitizen.command(
guild_ids=None,
guild_ids=core_utils.my_guilds,
name="ship",
description="Query the star citizen database about a ship",
)
@ -202,7 +203,7 @@ class StarCitizen(commands.Cog):
return all_commodities
@starcitizen.command(
guild_ids=None,
guild_ids=core_utils.my_guilds,
name="price",
description="Returns the price of Items in Star Citizen",
)
@ -226,7 +227,7 @@ class StarCitizen(commands.Cog):
await ctx.send_followup(embed=embed)
@starcitizen.command(
guild_ids=None,
guild_ids=core_utils.my_guilds,
name="trade",
description="Calculates the most profitable route for a given commodity",
)
@ -341,7 +342,7 @@ class StarCitizen(commands.Cog):
await star_citizen.send_alert(self, channel=channel_id, embed=embed)
@starcitizen.command(
guild_ids=None,
guild_ids=core_utils.my_guilds,
name="rsifind",
description="Pull up info about a player from their RSI profile",
)

View File

@ -4,12 +4,12 @@ git+https://github.com/pycord-development/pycord@6a69f6683be41e0c983cd0621eab240
googletrans==4.0.0rc1
gTTS
httpx
humanfriendly
loguru
lxml
markovify
openai
owotext
requests
requests_cache
wolframalpha
yfinance
loguru
yfinance