Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haugebot
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
haugebot
Commits
4506c0a7
Commit
4506c0a7
authored
4 years ago
by
dnns01
Browse files
Options
Downloads
Patches
Plain Diff
Removed debug outputs
parent
5ce20c0d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
info_cog.py
+1
-3
1 addition, 3 deletions
info_cog.py
with
1 addition
and
3 deletions
info_cog.py
+
1
−
3
View file @
4506c0a7
...
...
@@ -24,7 +24,6 @@ class InfoCog:
pass
async
def
start_info_loop
(
self
):
print
(
"
Starting Loop
"
)
asyncio
.
create_task
(
self
.
info_loop
())
async
def
info_loop
(
self
):
...
...
@@ -32,9 +31,8 @@ class InfoCog:
If this is true, reset the pipi counter, as you can assume, that the stream recently started.
"""
while
True
:
print
(
f
"
Loop started. Sleeping for
{
self
.
INFO_LOOP
}
minutes
"
)
await
asyncio
.
sleep
(
self
.
INFO_LOOP
*
60
)
print
(
"
Hey.... wake up!
"
)
if
await
self
.
bot
.
stream
():
channel
=
self
.
bot
.
channel
()
message
=
f
"
Psssst... wusstest du eigentlich schon,
{
random
.
choice
(
self
.
info
)
}
"
...
...
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