Giter VIP home page Giter VIP logo

steve's Introduction

steve

Uses the mcstatus API to get online Minecrafters, as well as the HCCore plugin to get their real names.

This app is in use on Hack Club's Minecraft Server.

Slack

Slash Commands

/players will point to https://your-app/players

Interactivity

The interactive "Request URL" should point to https://your-app/delete

OAuth Scopes

The bot will also require either the older "bot" oauth scope, or the following new permissions:

  • chat:write
  • chat:write.customize
  • commands
  • channels:join

Environment

The app will require several modifications to get running.

Setting Servers

The servers.json file can be used to set which servers the bot will show activity for. There is a usage example in servers.json.template.

Environment Variables

TOKEN is your Slack App's verification token - this is how it knows the requests are actually coming from slack.

TEAM_ID is the ID of your slack workspace, starting with T.

BOT_OAUTH_TOKEN is your app's Bot Token, beginning with xoxb-.

FLASK_ENV is the environment flask is serving in - probably set to production.

PLAYER_DATA_API is where the app is polling for nicknames.

CENSORED_WORDS contains a regex string of things that you might want censored from appearing in slack - for example, this could help if someone set their nickname to something unsavory.

SERVER_ADMIN contains a slack UID of someone who will be able to delete anyone's message - not just their own.

Defaults

The app defaults to running on port 8080, on the IP 0.0.0.0.

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.