update channel IDs for new guild
This commit is contained in:
1 parent
8edff04e54
commit
111d43a3ee
2 files changed
+14
-15
No files matched your search
+4
-5
@@ -76,7 +76,7 @@ class Banking(commands.Cog):
|
|||||||
aiohttp_session=aiohttp.ClientSession(loop=self.bot.loop),
|
aiohttp_session=aiohttp.ClientSession(loop=self.bot.loop),
|
||||||
)
|
)
|
||||||
|
|
||||||
@commands.has_role(987770837627187250)
|
@commands.has_any_role("Government", "The Croak Council")
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def tmilf(self, ctx: CustomCtx):
|
async def tmilf(self, ctx: CustomCtx):
|
||||||
"""
|
"""
|
||||||
@@ -159,7 +159,7 @@ class Banking(commands.Cog):
|
|||||||
m = await ctx.send(embed=e, view=v)
|
m = await ctx.send(embed=e, view=v)
|
||||||
v.message = m
|
v.message = m
|
||||||
|
|
||||||
@commands.has_role(987770837627187250)
|
@commands.has_role(1353931003365691392)
|
||||||
@commands.command(aliases=["wc"])
|
@commands.command(aliases=["wc"])
|
||||||
async def warchest(self, ctx: CustomCtx):
|
async def warchest(self, ctx: CustomCtx):
|
||||||
"""
|
"""
|
||||||
@@ -373,7 +373,7 @@ class Banking(commands.Cog):
|
|||||||
ctx=ctx, custom_items=[ConfirmButton(bot=self.bot, p=paginator)]
|
ctx=ctx, custom_items=[ConfirmButton(bot=self.bot, p=paginator)]
|
||||||
)
|
)
|
||||||
|
|
||||||
@commands.has_role(987770837627187250)
|
@commands.has_role(1353931003365691392)
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def rss(
|
async def rss(
|
||||||
self,
|
self,
|
||||||
@@ -447,7 +447,7 @@ class Banking(commands.Cog):
|
|||||||
|
|
||||||
await ctx.paginate(pages=embeds)
|
await ctx.paginate(pages=embeds)
|
||||||
|
|
||||||
@commands.has_role(987770837627187250)
|
@commands.has_role(1353931003365691392)
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def bank(self, ctx: CustomCtx):
|
async def bank(self, ctx: CustomCtx):
|
||||||
"""sends bank resources"""
|
"""sends bank resources"""
|
||||||
@@ -492,7 +492,6 @@ class Banking(commands.Cog):
|
|||||||
|
|
||||||
await ctx.paginate(pages=embeds)
|
await ctx.paginate(pages=embeds)
|
||||||
|
|
||||||
@commands.has_role(987770837627187250)
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def transfer(self, ctx: CustomCtx):
|
async def transfer(self, ctx: CustomCtx):
|
||||||
"""transfer resources"""
|
"""transfer resources"""
|
||||||
|
|||||||
+10
-10
@@ -22,13 +22,13 @@ from utils.paginator import Paginator
|
|||||||
from utils.funcs import format_count, timeline_button, get_nation, get_war
|
from utils.funcs import format_count, timeline_button, get_nation, get_war
|
||||||
|
|
||||||
ALLIANCE_ID = 10177
|
ALLIANCE_ID = 10177
|
||||||
GUILD = 943540698492334120
|
GUILD = 1353930666311421952
|
||||||
CATEGORY = 1017442427537215619
|
CATEGORY = 1356240812861821048
|
||||||
ARCHIVE_CATEGORY = 1363161502969892874
|
ARCHIVE_CATEGORY = 1367458846708334703
|
||||||
OFFENSIVE_LOG_CHANNEL = 1359571584574029925
|
OFFENSIVE_LOG_CHANNEL = 1353940560771027034
|
||||||
DEFENSIVE_LOG_CHANNEL = 1362303245598457856
|
DEFENSIVE_LOG_CHANNEL = 1353940670246686843
|
||||||
MONITORED_ALLIANCES = [10177, 10198]
|
MONITORED_ALLIANCES = [10177, 10198]
|
||||||
ALLIANCE_ATK_CH = 1363882443605541127
|
ALLIANCE_ATK_CH = 1367461291685318686
|
||||||
|
|
||||||
REFILL_LIST = json.load(open("refill.json"))
|
REFILL_LIST = json.load(open("refill.json"))
|
||||||
|
|
||||||
@@ -427,7 +427,7 @@ class WarMonitor(commands.Cog):
|
|||||||
|
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.has_permissions(administrator=True)
|
@commands.has_role("The Croak Council")
|
||||||
async def sync_wars(self, ctx: CustomCtx):
|
async def sync_wars(self, ctx: CustomCtx):
|
||||||
# get all alliance active wars
|
# get all alliance active wars
|
||||||
m = await ctx.send("> <a:load:1275839759192686654> syncing wars")
|
m = await ctx.send("> <a:load:1275839759192686654> syncing wars")
|
||||||
@@ -455,7 +455,7 @@ class WarMonitor(commands.Cog):
|
|||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.has_permissions(administrator=True)
|
@commands.has_permissions(administrator=True)
|
||||||
@commands.has_role("Heqet")
|
@commands.has_role("The Croak Council")
|
||||||
async def archive(self, ctx: CustomCtx):
|
async def archive(self, ctx: CustomCtx):
|
||||||
category = await self.bot.fetch_channel(CATEGORY)
|
category = await self.bot.fetch_channel(CATEGORY)
|
||||||
if ctx.channel not in category.text_channels:
|
if ctx.channel not in category.text_channels:
|
||||||
@@ -468,7 +468,7 @@ class WarMonitor(commands.Cog):
|
|||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.has_permissions(administrator=True)
|
@commands.has_permissions(administrator=True)
|
||||||
@commands.has_role("Heqet")
|
@commands.has_role("The Croak Council")
|
||||||
async def addm(self, ctx: CustomCtx, *, member: discord.Member):
|
async def addm(self, ctx: CustomCtx, *, member: discord.Member):
|
||||||
category = await self.bot.fetch_channel(CATEGORY)
|
category = await self.bot.fetch_channel(CATEGORY)
|
||||||
if ctx.channel not in category.text_channels:
|
if ctx.channel not in category.text_channels:
|
||||||
@@ -479,7 +479,7 @@ class WarMonitor(commands.Cog):
|
|||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.has_permissions(administrator=True)
|
@commands.has_permissions(administrator=True)
|
||||||
@commands.has_role("Heqet")
|
@commands.has_role("The Croak Council")
|
||||||
async def delete(self, ctx: CustomCtx):
|
async def delete(self, ctx: CustomCtx):
|
||||||
category = await self.bot.fetch_channel(ARCHIVE_CATEGORY)
|
category = await self.bot.fetch_channel(ARCHIVE_CATEGORY)
|
||||||
if ctx.channel not in category.text_channels:
|
if ctx.channel not in category.text_channels:
|
||||||
|
|||||||
Reference in new issue
Block a user