Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
strolly
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
strolly
Commits
abe9deb8
Commit
abe9deb8
authored
3 years ago
by
Dennis Klein
Browse files
Options
Downloads
Patches
Plain Diff
Improve arminsagt output
parent
af1283bc
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
armin.py
+16
-8
16 additions, 8 deletions
armin.py
with
16 additions
and
8 deletions
armin.py
+
16
−
8
View file @
abe9deb8
import
random
from
datetime
import
datetime
,
timedelta
from
discord.ext
import
commands
...
...
@@ -6,22 +7,29 @@ from discord.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
/n
"
,
"
wöchige
/n
"
,
"
monatige
/n
"
,
"
fache
/n
"
,
"
malige
/n
"
,
"
hebige
/n
"
]
self
.
c
=
[
"
harte
/n
"
,
"
softe
/n
"
,
"
optionale
/n
"
,
"
intranspatente
/n
"
,
"
alternativlose
/n
"
,
"
unumkehrbare
/n
"
]
self
.
a
=
[
"
ein
"
,
"
zwei
"
,
"
drei
"
,
"
vier
"
,
"
fünf
"
,
"
sechs
"
]
self
.
b
=
[
"
tägige
"
,
"
wöchige
"
,
"
monatige
"
,
"
fache
"
,
"
malige
"
,
"
hebige
"
]
self
.
c
=
[
"
harte
"
,
"
softe
"
,
"
optionale
"
,
"
intranspatente
"
,
"
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 A
p
iturprüfungen
"
,
self
.
f
=
[
"
zum Sommer
"
,
"
auf Weiteres
"
,
"
zur Bundestagswahl
"
,
"
2030
"
,
"
nach den A
b
iturprü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
):
await
ctx
.
send
(
f
"
Was wir jetzt brauchen, ist ein/e
{
random
.
choice
(
self
.
a
)
}{
random
.
choice
(
self
.
b
)
}
"
f
"
{
random
.
choice
(
self
.
c
)
}
{
random
.
choice
(
self
.
d
)
}{
random
.
choice
(
self
.
e
)
}
"
f
"
bis
{
random
.
choice
(
self
.
f
)
}
zur
{
random
.
choice
(
self
.
g
)
}
{
random
.
choice
(
self
.
h
)
}
"
f
"
der
{
random
.
choice
(
self
.
i
)
}
.
"
)
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.
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