update the message every time the bot connects so that way i can always have it updated in case we add more roles
This commit is contained in:
parent
afb5765e55
commit
930a7d8bd2
37
app/bot.py
37
app/bot.py
@ -33,32 +33,33 @@ async def on_ready():
|
|||||||
)
|
)
|
||||||
|
|
||||||
if os.getenv("DRAGON_ENV") == "prod":
|
if os.getenv("DRAGON_ENV") == "prod":
|
||||||
# for guild in bot.guilds:
|
|
||||||
# await bot.register_commands(guild_id=guild.id, force=True)
|
|
||||||
await bot.get_channel(152921472304676865).send("I have reconnected")
|
await bot.get_channel(152921472304676865).send("I have reconnected")
|
||||||
# else:
|
|
||||||
# # force register commands in test server on launch
|
|
||||||
# await bot.register_commands(guild_id=826547484632678450, force=True)
|
|
||||||
|
|
||||||
|
# Waiting-room in zoid's server
|
||||||
|
channel_id = 1026281775984549958
|
||||||
|
message_id = 1099374735428681758
|
||||||
|
|
||||||
# @bot.event
|
# for testing, bot-testing server's channel
|
||||||
# async def on_ready():
|
# channel_id = 932476007439552522
|
||||||
# # Waiting-room in zoid's server
|
# message_id = 1099841144218722324
|
||||||
# # channel = bot.get_channel('1026281775984549958')
|
|
||||||
# blurb = """Welcome to our server!
|
|
||||||
# We have lots of roles you can select based on what kind of games you're here to play.
|
|
||||||
|
|
||||||
# Please react to this message with one of the following emojis to be granted the appropriate role:
|
blurb = """Welcome to our server!
|
||||||
|
We have lots of roles you can select based on what kind of games you're here to play.
|
||||||
|
|
||||||
# 🔫 for Tarkov
|
Please react to this message with one of the following emojis to be granted the appropriate role:
|
||||||
|
|
||||||
# 👹 for Darktide or Vermintide
|
🔫 for Tarkov
|
||||||
|
|
||||||
# 🪖 for Battlefield
|
👹 for Darktide or Vermintide
|
||||||
|
|
||||||
# 🚀 for Star Citizen
|
🪖 for Battlefield
|
||||||
# """
|
|
||||||
# message = await bot.get_channel(1026281775984549958).send(blurb)
|
🚀 for Star Citizen
|
||||||
|
"""
|
||||||
|
# message = await bot.get_channel(channel_id).send(blurb)
|
||||||
|
# Update the message on_ready to match the content we always want to be there
|
||||||
|
message = await bot.get_channel(channel_id).fetch_message(message_id)
|
||||||
|
await message.edit(content=blurb)
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
|
Loading…
x
Reference in New Issue
Block a user