updates your slack status based on your discord rich presence using the data from the lanyard service
- Join the lanyard discord server - this will expose your discord presence to a restful api which the bot will use to fetch your activity data
- Create a new slack application and give it access to the
users.profile:write
scope - this will give the bot the permission to update your profile, which includes your status - Create a copy of
.env.example
and name it.env
- In
.env
file, update:USER_OAUTH_TOKEN
with your Bot User OAuth Token - this is given by Slack when you create a new applicationDISCORD_ID
field with your discord id (don't confuse this with your username)- OPTIONAL:
REFRESH_INTERVAL
to what you would like (in seconds)
- the only changes you will need to make in the code are to the setup.py file:
- update
emojis
with valid slack emoji ids (e.x.:smile:
) for all of the fields - update
default_status_message
with what you want your status to be when there are no activities in your discord presence
- update
Application:
First line: Custom: "Idle"
Second line: Empty
Project:
First line: Custom: "Editing ${ProjectName} [${VcsBranch}]"
Second line: Empty
File:
First line: File Name
Second line: Custom: "${ProjectName} [${VcsBranch}]"