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
b0a85c1e
Commit
b0a85c1e
authored
3 years ago
by
dnns01
Browse files
Options
Downloads
Patches
Plain Diff
Add notification to yuni, whenever Marcus starts blender
parent
a6d0b145
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
strolly.py
+11
-2
11 additions, 2 deletions
strolly.py
with
11 additions
and
2 deletions
strolly.py
+
11
−
2
View file @
b0a85c1e
...
...
@@ -15,8 +15,7 @@ load_dotenv()
TOKEN
=
os
.
getenv
(
'
DISCORD_TOKEN
'
)
ACTIVITY
=
os
.
getenv
(
'
DISCORD_ACTIVITY
'
)
intents
=
discord
.
Intents
.
default
()
intents
.
members
=
True
intents
=
discord
.
Intents
.
all
()
bot
=
commands
.
Bot
(
command_prefix
=
'
!
'
,
help_command
=
None
,
activity
=
discord
.
Game
(
ACTIVITY
),
intents
=
intents
)
bot
.
add_cog
(
PollCog
(
bot
))
bot
.
add_cog
(
RollCog
(
bot
))
...
...
@@ -30,4 +29,14 @@ async def on_ready():
print
(
"
Client started!
"
)
@bot.event
async
def
on_member_update
(
before
,
after
):
if
before
.
id
==
250613346653569025
:
if
after
.
activity
and
"
Blender
"
in
after
.
activity
.
name
:
if
not
before
.
activity
or
(
before
.
activity
and
"
Blender
"
not
in
before
.
activity
.
name
):
channel
=
await
bot
.
fetch_channel
(
811980578621620235
)
await
channel
.
send
(
"
Achtung <@!490167202625093634>!!! Er tut es schon wieder! Marcus hat gerade die Kultsoftware Blender gestartet!
"
)
bot
.
run
(
TOKEN
)
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