Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
strolchibot
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
strolchibot
Commits
73e182ac
Commit
73e182ac
authored
3 years ago
by
dnns01
Browse files
Options
Downloads
Patches
Plain Diff
Remove armin and scarecounter
parent
401128d5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
twitchbot/armin.py
+0
-35
0 additions, 35 deletions
twitchbot/armin.py
twitchbot/scarecounter.py
+0
-16
0 additions, 16 deletions
twitchbot/scarecounter.py
twitchbot/strolchibot.py
+0
-4
0 additions, 4 deletions
twitchbot/strolchibot.py
with
0 additions
and
55 deletions
twitchbot/armin.py
deleted
100644 → 0
+
0
−
35
View file @
401128d5
import
random
from
datetime
import
datetime
,
timedelta
from
twitchio.ext
import
commands
class
Armin
(
commands
.
Cog
):
def
__init__
(
self
,
bot
):
self
.
bot
=
bot
self
.
a
=
[
"
ein
"
,
"
zwei
"
,
"
drei
"
,
"
vier
"
,
"
fünf
"
,
"
sechs
"
]
self
.
b
=
[
"
tägige
"
,
"
wöchige
"
,
"
monatige
"
,
"
fache
"
,
"
malige
"
,
"
hebige
"
]
self
.
c
=
[
"
harte
"
,
"
softe
"
,
"
optionale
"
,
"
intransparente
"
,
"
alternativlose
"
,
"
unumkehrbare
"
]
self
.
d
=
[
"
Wellenbrecher-
"
,
"
Brücken-
"
,
"
Treppen-
"
,
"
Wende-
"
,
"
Impf-
"
,
"
Ehren-
"
]
self
.
e
=
[
"
Lockdown
"
,
"
Stopp
"
,
"
Maßnahme
"
,
"
Kampagne
"
,
"
Sprint
"
,
"
Matrix
"
]
self
.
f
=
[
"
zum Sommer
"
,
"
auf Weiteres
"
,
"
zur Bundestagswahl
"
,
"
2030
"
,
"
nach den Abiturprüfungen
"
,
"
in die Puppen
"
]
self
.
g
=
[
"
sofortigen
"
,
"
nachhaltigen
"
,
"
allmählichen
"
,
"
unausweichlichen
"
,
"
wirtschaftsschonenden
"
,
"
willkürlichen
"
]
self
.
h
=
[
"
Senkung
"
,
"
Steigerung
"
,
"
Beendigung
"
,
"
Halbierung
"
,
"
Vernichtung
"
,
"
Beschönigung
"
]
self
.
i
=
[
"
Infektionszahlen
"
,
"
privaten Treffen
"
,
"
Wirtschaftsleistung
"
,
"
Wahlprognosen
"
,
"
dritten Welle
"
,
"
Bundeskanzlerin
"
]
self
.
arminsagt_cooldown
=
datetime
.
now
()
@commands.command
(
name
=
"
arminsagt
"
)
async
def
cmd_arminsagt
(
self
,
ctx
):
if
datetime
.
now
()
>
self
.
arminsagt_cooldown
:
self
.
arminsagt_cooldown
=
datetime
.
now
()
+
timedelta
(
minutes
=
1
)
rNum
=
random
.
randint
(
0
,
5
)
n
=
"
n
"
if
rNum
not
in
[
2
,
3
,
5
]
else
""
await
ctx
.
send
(
f
"
Was wir jetzt brauchen, ist eine
{
n
}
{
random
.
choice
(
self
.
a
)
}{
random
.
choice
(
self
.
b
)
}{
n
}
"
f
"
{
random
.
choice
(
self
.
c
)
}{
n
}
{
random
.
choice
(
self
.
d
)
}{
self
.
e
[
rNum
]
}
"
f
"
bis
{
random
.
choice
(
self
.
f
)
}
zur
{
random
.
choice
(
self
.
g
)
}
{
random
.
choice
(
self
.
h
)
}
"
f
"
der
{
random
.
choice
(
self
.
i
)
}
.
"
)
else
:
await
ctx
.
send
(
"
Sorry, aber Armin denkt noch nach...
"
)
This diff is collapsed.
Click to expand it.
twitchbot/scarecounter.py
deleted
100644 → 0
+
0
−
16
View file @
401128d5
from
twitchio.ext
import
commands
class
ScareCounter
(
commands
.
Cog
):
def
__init__
(
self
,
bot
):
self
.
bot
=
bot
self
.
scarecount
=
0
@commands.command
(
name
=
"
scarecount
"
)
async
def
cmd_scarecount
(
self
,
ctx
,
add
=
None
):
if
add
==
"
++
"
:
self
.
scarecount
+=
1
elif
add
==
"
--
"
:
self
.
scarecount
-=
1
await
ctx
.
send
(
f
"
Shawna und Marcus haben sich schon
{
self
.
scarecount
}
mal geBRRRRRRRRt 👻👻👻
"
)
This diff is collapsed.
Click to expand it.
twitchbot/strolchibot.py
+
0
−
4
View file @
73e182ac
...
...
@@ -9,12 +9,10 @@ from twitchio import Channel, Message
from
twitchio.ext
import
commands
from
twitchio.ext.commands
import
Context
import
armin
import
chat_commands
import
giveaway
import
klassenbuch_cog
import
link_protection
import
scarecounter
import
spotify_cog
import
vote_cog
...
...
@@ -39,8 +37,6 @@ class StrolchiBot(commands.Bot, ABC):
self
.
add_cog
(
klassenbuch_cog
.
KlassenbuchCog
(
self
))
self
.
add_cog
(
spotify_cog
.
SpotifyCog
(
self
))
self
.
add_cog
(
link_protection
.
LinkProtection
(
self
))
self
.
add_cog
(
armin
.
Armin
(
self
))
self
.
add_cog
(
scarecounter
.
ScareCounter
(
self
))
self
.
add_cog
(
giveaway
.
Giveaway
(
self
))
self
.
add_cog
(
chat_commands
.
Commands
(
self
))
...
...
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