Skip to content
Snippets Groups Projects
Commit a3497ad9 authored by LMzK's avatar LMzK
Browse files

Greeting Channel Variable hinzugefügt

- Welcome Cog: root soll im Greeting-Channel grüßen
- env.template neuer Greeting_Channel.
- Außerdem .env #IDs nach Rollen / Channel und alphabetisch angeordnet.
parent 04d10110
Branches
No related tags found
1 merge request!15Aktualisierung von News-Branch
......@@ -5,17 +5,18 @@ DISCORD_ACTIVITY=<What should be shown, Bot is playing right now>
DISCORD_INVITE_LINK=<Invitation Link to this Discord Server>
# IDs
DISCORD_MOD_ROLE=<ID of Mod Role>
DISCORD_ADMIN_ROLE=<ID of Admin Role>
DISCORD_POLL_SUGG_CHANNEL=<ID of Channel, where poll suggestions are posted>
DISCORD_WELCOME_CHANNEL=<ID of welcome channel>
DISCORD_WELCOME_MSG=<ID of welcome message>
DISCORD_CALMDOWN_ROLE=<ID of calmdown role>
DISCORD_MOD_ROLE=<ID of Mod Role>
DISCORD_BOTUEBUNGSPLATZ_CHANNEL=<ID of channel for bot experiments>
DISCORD_GREETING_CHANNEL=<ID of channel where users will be greeted when they join>
DISCORD_OFFTOPIC_CHANNEL=<ID of channel for greeting & everydays subjects and questions>
DISCORD_SUPPORT_CHANNEL=<ID of channel where modmail & user news should be forwarded>
DISCORD_CALMDOWN_ROLE=<ID of calmdown role>
DISCORD_POLL_SUGG_CHANNEL=<ID of Channel, where poll suggestions are posted>
DISCORD_ROLE_CHANNEL=<ID of channel for attribution of server roles>
DISCORD_ROLE_MSG=<ID of role assignment message>
DISCORD_SUPPORT_CHANNEL=<ID of channel where modmail & user news should be forwarded>
DISCORD_WELCOME_CHANNEL=<ID of welcome channel>
DISCORD_WELCOME_MSG=<ID of welcome message>
# JSON Files
DISCORD_CALMDOWN_FILE=<File name for calmdowns JSON file>
......
......@@ -67,7 +67,7 @@ class Welcome(commands.Cog):
@commands.Cog.listener()
async def on_member_update(self, before, after):
if before.pending != after.pending and not after.pending:
channel = await self.bot.fetch_channel(int(os.getenv("DISCORD_OFFTOPIC_CHANNEL")))
channel = await self.bot.fetch_channel(int(os.getenv("DISCORD_GREETING_CHANNEL")))
await channel.send(f"Willkommen <@!{before.id}> im Kreise der FernUni-Studierenden :student:")
async def cog_command_error(self, ctx, error):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment