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
af1283bc
Commit
af1283bc
authored
3 years ago
by
Dennis Klein
Browse files
Options
Downloads
Patches
Plain Diff
Added "arminsagt command"
parent
ed60c656
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
armin.py
+27
-0
27 additions, 0 deletions
armin.py
strolly.py
+3
-1
3 additions, 1 deletion
strolly.py
with
30 additions
and
1 deletion
armin.py
0 → 100644
+
27
−
0
View file @
af1283bc
import
random
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
.
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 Apiturprü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
"
]
@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
)
}
.
"
)
This diff is collapsed.
Click to expand it.
strolly.py
+
3
−
1
View file @
af1283bc
...
...
@@ -4,9 +4,10 @@ import discord
from
discord.ext
import
commands
from
dotenv
import
load_dotenv
from
armin
import
Armin
from
leaderboard
import
Leaderboard
from
poll_cog
import
PollCog
from
roll_cog
import
RollCog
from
leaderboard
import
Leaderboard
# .env file is necessary in the same directory, that contains several strings.
load_dotenv
()
...
...
@@ -19,6 +20,7 @@ bot = commands.Bot(command_prefix='!', help_command=None, activity=discord.Game(
bot
.
add_cog
(
PollCog
(
bot
))
bot
.
add_cog
(
RollCog
(
bot
))
bot
.
add_cog
(
Leaderboard
(
bot
))
bot
.
add_cog
(
Armin
(
bot
))
@bot.event
...
...
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