Giter Club home page Giter Club logo

slack-status-updates's Introduction

slack status updates ⚡️

updates your slack status based on your discord rich presence using the data from the lanyard service

setup:

  1. 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
  2. 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
  3. Create a copy of .env.example and name it .env
  4. In .env file, update:
    1. USER_OAUTH_TOKEN with your Bot User OAuth Token - this is given by Slack when you create a new application
    2. DISCORD_ID field with your discord id (don't confuse this with your username)
    3. OPTIONAL: REFRESH_INTERVAL to what you would like (in seconds)
  5. the only changes you will need to make in the code are to the setup.py file:
    1. update emojis with valid slack emoji ids (e.x. :smile:) for all of the fields
    2. update default_status_message with what you want your status to be when there are no activities in your discord presence

Pycharm config

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}]"

slack-status-updates's People

Contributors

karevulli avatar siddhxrth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.