Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fernuni-bot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dnns01
fernuni-bot
Commits
5131f690
Unverified
Commit
5131f690
authored
3 years ago
by
Fabian
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix forgotten awaits on channel.send() calls (#125)
parent
5b48fb58
No related branches found
No related tags found
1 merge request
!128
Merge learninggroup changes to release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cogs/learninggroups.py
+4
-4
4 additions, 4 deletions
cogs/learninggroups.py
with
4 additions
and
4 deletions
cogs/learninggroups.py
+
4
−
4
View file @
5131f690
...
...
@@ -566,10 +566,10 @@ class LearningGroups(commands.Cog):
channel_config
=
self
.
channels
[
str
(
ctx
.
channel
.
id
)]
if
channel_config
:
if
channel_config
.
get
(
"
is_open
"
):
ctx
.
channel
.
send
(
"
Nichts zu tun. Offene Lerngruppen werden sowieso in der Liste angezeigt.
"
)
await
ctx
.
channel
.
send
(
"
Nichts zu tun. Offene Lerngruppen werden sowieso in der Liste angezeigt.
"
)
return
if
await
self
.
set_channel_state
(
ctx
.
channel
,
is_listed
=
True
):
ctx
.
channel
.
send
(
"
Die Lerngruppe wird nun in der Lerngruppenliste angezeigt.
"
)
await
ctx
.
channel
.
send
(
"
Die Lerngruppe wird nun in der Lerngruppenliste angezeigt.
"
)
@help
(
command_group
=
"
lg
"
,
...
...
@@ -585,11 +585,11 @@ class LearningGroups(commands.Cog):
if
self
.
is_group_owner
(
ctx
.
channel
,
ctx
.
author
)
or
utils
.
is_mod
(
ctx
):
channel_config
=
self
.
channels
[
str
(
ctx
.
channel
.
id
)]
if
channel_config
.
get
(
"
is_open
"
):
ctx
.
channel
.
send
(
"
Offene Lerngruppen können nicht versteckt werden. Führe `!lg close` aus um
"
await
ctx
.
channel
.
send
(
"
Offene Lerngruppen können nicht versteckt werden. Führe `!lg close` aus um
"
"
die Lerngruppe zu schließen und zu verstecken.
"
)
return
if
await
self
.
set_channel_state
(
ctx
.
channel
,
is_listed
=
False
):
ctx
.
channel
.
send
(
"
Die Lerngruppe wird nun nicht mehr in der Lerngruppenliste angezeigt.
"
)
await
ctx
.
channel
.
send
(
"
Die Lerngruppe wird nun nicht mehr in der Lerngruppenliste angezeigt.
"
)
@help
(
command_group
=
"
lg
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment