Lock star citizen commands to my serveR
This commit is contained in:
parent
3c958f40e7
commit
dbc1df9242
@ -19,8 +19,9 @@ cogfiles = [
|
|||||||
for cogfile in cogfiles:
|
for cogfile in cogfiles:
|
||||||
bot.load_extension(cogfile)
|
bot.load_extension(cogfile)
|
||||||
|
|
||||||
# import requests_cache
|
import requests_cache
|
||||||
# requests_cache.install_cache(expire_after=300)
|
|
||||||
|
requests_cache.install_cache(expire_after=300)
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
|
@ -6,6 +6,7 @@ import os
|
|||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
import core_utils
|
||||||
import star_citizen
|
import star_citizen
|
||||||
|
|
||||||
if os.getenv("DRAGON_ENV") == "prod":
|
if os.getenv("DRAGON_ENV") == "prod":
|
||||||
@ -24,7 +25,7 @@ class StarCitizen(commands.Cog):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@starcitizen.command(
|
@starcitizen.command(
|
||||||
guild_ids=None,
|
guild_ids=core_utils.my_guilds,
|
||||||
name="medpens",
|
name="medpens",
|
||||||
description="Posts an infographic about which medpens to use for which injuries in Star Citizen",
|
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")
|
await ctx.respond("https://i.redd.it/lfswlf5c13t71.png")
|
||||||
|
|
||||||
@starcitizen.command(
|
@starcitizen.command(
|
||||||
guild_ids=None,
|
guild_ids=core_utils.my_guilds,
|
||||||
name="drugs",
|
name="drugs",
|
||||||
description="Returns a list of all the drugs in game sorted by their price",
|
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
|
return all_ships
|
||||||
|
|
||||||
@starcitizen.command(
|
@starcitizen.command(
|
||||||
guild_ids=None,
|
guild_ids=core_utils.my_guilds,
|
||||||
name="ship",
|
name="ship",
|
||||||
description="Query the star citizen database about a ship",
|
description="Query the star citizen database about a ship",
|
||||||
)
|
)
|
||||||
@ -202,7 +203,7 @@ class StarCitizen(commands.Cog):
|
|||||||
return all_commodities
|
return all_commodities
|
||||||
|
|
||||||
@starcitizen.command(
|
@starcitizen.command(
|
||||||
guild_ids=None,
|
guild_ids=core_utils.my_guilds,
|
||||||
name="price",
|
name="price",
|
||||||
description="Returns the price of Items in Star Citizen",
|
description="Returns the price of Items in Star Citizen",
|
||||||
)
|
)
|
||||||
@ -226,7 +227,7 @@ class StarCitizen(commands.Cog):
|
|||||||
await ctx.send_followup(embed=embed)
|
await ctx.send_followup(embed=embed)
|
||||||
|
|
||||||
@starcitizen.command(
|
@starcitizen.command(
|
||||||
guild_ids=None,
|
guild_ids=core_utils.my_guilds,
|
||||||
name="trade",
|
name="trade",
|
||||||
description="Calculates the most profitable route for a given commodity",
|
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)
|
await star_citizen.send_alert(self, channel=channel_id, embed=embed)
|
||||||
|
|
||||||
@starcitizen.command(
|
@starcitizen.command(
|
||||||
guild_ids=None,
|
guild_ids=core_utils.my_guilds,
|
||||||
name="rsifind",
|
name="rsifind",
|
||||||
description="Pull up info about a player from their RSI profile",
|
description="Pull up info about a player from their RSI profile",
|
||||||
)
|
)
|
||||||
|
@ -4,12 +4,12 @@ git+https://github.com/pycord-development/pycord@6a69f6683be41e0c983cd0621eab240
|
|||||||
googletrans==4.0.0rc1
|
googletrans==4.0.0rc1
|
||||||
gTTS
|
gTTS
|
||||||
httpx
|
httpx
|
||||||
humanfriendly
|
loguru
|
||||||
lxml
|
lxml
|
||||||
markovify
|
markovify
|
||||||
openai
|
openai
|
||||||
owotext
|
owotext
|
||||||
requests
|
requests
|
||||||
|
requests_cache
|
||||||
wolframalpha
|
wolframalpha
|
||||||
yfinance
|
yfinance
|
||||||
loguru
|
|
Loading…
x
Reference in New Issue
Block a user