Skip to content

Commit

Permalink
Small Fixes (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaWarrior12 authored Aug 1, 2024
2 parents 2c7c895 + 36b8cac commit b487932
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions cogs/devcmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ async def metrics(self,ctx,metric):
async def appid(self,ctx):
if ctx.message.author.id in developers:
await ctx.send(self.bot.application_id)
await ctx.send(self.bot.user.id)
else:
pass

Expand Down
4 changes: 2 additions & 2 deletions cogs/othercmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def on_disconnect():
async def pingpage(self,ctx):
await ctx.send("New Light Ping Page: https://new-light-discord-bot.jawarrior.repl.co")

@commands.command(name="whois",help="Gets Clans A Member Is In")
@commands.command(name="whois",help="Gets Clans A Member Is In",hidden=True,disabled=True)
async def whois(self,ctx,member:discord.Member):
#print(1)
shargids=member.mutual_guilds
Expand All @@ -99,7 +99,7 @@ async def whois(self,ctx,member:discord.Member):
pass
await ctx.send(embed=e)

@commands.command(name="event",help="Calls The Swiss Army Event Timer")
@commands.command(name="event",help="Calls The Swiss Army Event Timer",disabled=True,hidden=True)
async def saftimer(self,ctx):\
#link: https://swiss-website.floofyjpeg.repl.co/timers/xanniAPIpass1')
r = requests.get(f'https://google.com')
Expand Down
12 changes: 7 additions & 5 deletions cogs/plexusSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ def setPS(data):
class PlexusCmds(commands.Cog, name="Plexus Commands",description="Commands For Plexus"):
def __init__(self, bot: commands.Bot):
self.bot = bot
#self.runDailyTransferReport_TimerLoop.start()
if bot.application_id == 974045822167679087:
#self.runDailyTransferReport_TimerLoop.start
#print(self.bot.application_id)
if self.bot.application_id == 974045822167679087:
self.runDailyTransferReport_TimerLoop.start()
#pass
print("start trackLog loop")
#pass
def cog_unload(self):
self.runDailyTransferReport_TimerLoop.cancel()
if self.bot.application_id == 974045822167679087:
#pass
self.runDailyTransferReport_TimerLoop.cancel()
Expand All @@ -66,7 +67,7 @@ def cog_unload(self):

def is_plexus_server():
def predicate(ctx):
return ctx.guild is not None and ctx.guild.id in ALLOWED_SERVERS or ctx.author.id in lists.developers
return ctx.guild is not None or ctx.author.id in lists.developers #and ctx.guild.id in ALLOWED_SERVERS
return commands.check(predicate)

@commands.command(name="testRDTR",help="Tests the runDailyTransferReport script.")
Expand Down Expand Up @@ -109,6 +110,7 @@ async def updateTrackList(self,ctx,function,hex=None):

@tasks.loop(time=tmes)
async def runDailyTransferReport_TimerLoop(self):
print("Running Daily trackLog Loop!")
await self.runDailyTransferReport(self,None,None,None)

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions cogs/setupcmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def predicate(ctx):
return ctx.guild is not None and ctx.guild.owner_id == ctx.author.id or ctx.author.id in lists.developers
return commands.check(predicate)

@commands.command(name="setupserver",aliases=["setup","serversetup"],brief="Setup For Your Server (Servr Owner Only)",help="Sets Up Databases and Configs For Your Server. ONLY RUN THIS ONCE!!! Administrator Permissions are required to run this command. It automaticlly adds the person who ran the command to the authorized users list. Ping Channel is for the NL Ping Webpage, simply insert the CHANNEL ID of your Battle Links channel.\ndistroChannel is the ID of your distribution channel.\nclanPercent is the percent of flux from each distro log that goes to the clan. Must be the server owner to run this, if the server owner is unavailable you can contact jawarrior about completing server setup.")
@commands.command(name="setupserver",aliases=["setup","serversetup"],brief="Setup For Your Server (Server Owner Only)",help="Sets Up Databases and Configs For Your Server. ONLY RUN THIS ONCE!!! Administrator Permissions are required to run this command. It automaticlly adds the person who ran the command to the authorized users list. If server owner is unavailable, contact jawarrior about continuing setup.")
#@commands.has_permissions(administrator=True)
@commands.check_any(is_guild_owner())
async def setupsrvr(self,ctx):
Expand Down Expand Up @@ -66,7 +66,7 @@ async def setupsrvr(self,ctx):
data[gid]=dict(defaultc)
lists.setdataE(data)
banlt = lists.readdataE()
banlt[gid]["auth"].append(str(uid))
banlt.update({gid:{"auth":[str(uid)]}})
lists.setdataE(banlt)
data = lists.readFile("plexusSystems")
data[gid]={"trackList":[]}
Expand Down

0 comments on commit b487932

Please sign in to comment.