Skip to content
Snippets Groups Projects
Commit 40a95967 authored by dnns01's avatar dnns01
Browse files

Merge remote-tracking branch 'origin/master'

parents 1d34dd0e 8f88e2cd
No related branches found
No related tags found
No related merge requests found
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=FU-Hagen-Discord_root&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=FU-Hagen-Discord_root) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=FU-Hagen-Discord_root&metric=bugs)](https://sonarcloud.io/summary/new_code?id=FU-Hagen-Discord_root) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=FU-Hagen-Discord_root&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=FU-Hagen-Discord_root)
# root🌱 # root🌱
*Bot für den Discord Server "Fernuni Discord Admins"* *Bot für den Discord Server "Fernuni Discord Admins"*
......
...@@ -14,7 +14,7 @@ class Polls(commands.GroupCog, name="poll", description="Handle Polls in Channel ...@@ -14,7 +14,7 @@ class Polls(commands.GroupCog, name="poll", description="Handle Polls in Channel
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
@app_commands.command(name="add", description="Erstelle eine Umfrage mit bis zu 20 Antwortmöglichkeiten.") @app_commands.command(name="add", description="Erstelle eine anonyme Umfrage mit bis zu 20 Antwortmöglichkeiten.")
@app_commands.describe(question="Welche Frage möchtest du stellen?", choice_a="1. Antwortmöglichkeit", @app_commands.describe(question="Welche Frage möchtest du stellen?", choice_a="1. Antwortmöglichkeit",
choice_b="2. Antwortmöglichkeit", choice_c="3. Antwortmöglichkeit", choice_b="2. Antwortmöglichkeit", choice_c="3. Antwortmöglichkeit",
choice_d="4. Antwortmöglichkeit", choice_e="5. Antwortmöglichkeit", choice_d="4. Antwortmöglichkeit", choice_e="5. Antwortmöglichkeit",
...@@ -38,7 +38,7 @@ class Polls(commands.GroupCog, name="poll", description="Handle Polls in Channel ...@@ -38,7 +38,7 @@ class Polls(commands.GroupCog, name="poll", description="Handle Polls in Channel
choice_k, choice_l, choice_m, choice_n, choice_o, choice_p, choice_q, choice_r, choice_s, choice_t]) if choice_k, choice_l, choice_m, choice_n, choice_o, choice_p, choice_q, choice_r, choice_s, choice_t]) if
choice] choice]
await interaction.response.send_message("Bereite Umfrage vor, bitte warten...", view=PollView()) await interaction.response.send_message("Bereite anonyme Umfrage vor, bitte warten...", view=PollView())
message = await interaction.original_response() message = await interaction.original_response()
poll = Poll.create(question=question, author=interaction.user.id, channel=interaction.channel_id, poll = Poll.create(question=question, author=interaction.user.id, channel=interaction.channel_id,
message=message.id) message=message.id)
......
...@@ -33,7 +33,7 @@ class Welcome(commands.GroupCog, name="welcome", description="Neue Mitglieder Wi ...@@ -33,7 +33,7 @@ class Welcome(commands.GroupCog, name="welcome", description="Neue Mitglieder Wi
inline=False) inline=False)
embed.add_field(name=":robot: Server-Bot", embed.add_field(name=":robot: Server-Bot",
value=f"Ich bin root. Beim <#{self.config['botuebungsplatz_channel']}> kannst du meine verschiedenen Befehle ausprobieren. Wenn du dort `!help` schreibst, sende ich dir per Direktnachricht einen Überblick meiner Funktionen.", value=f"Ich bin root. Beim <#{self.config['botuebungsplatz_channel']}> kannst du meine verschiedenen Befehle ausprobieren. Wenn du dort `/` schreibst, werden dir meine Befehle als Vorschläge zur Autovervollständigung angezeigt, mitsamt jeweiliger Erklärung des Befehls.",
inline=False) inline=False)
embed.add_field(name=":placard: Rollen", embed.add_field(name=":placard: Rollen",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment