Giter Club home page Giter Club logo

points's Introduction

Give me your points!

This a very simple bot to keep track of scores or any kind of point system. You provide the bot with a Google spreadsheet and then anyone can tally up their own points. Admins can also control other people's points.

Adding the bot to your server:

  1. Add to server from https://discordapp.com/api/oauth2/authorize?client_id=518608155907719168&permissions=0&scope=bot

  2. Familiarize yourself with the commands using p!help.

  3. Add yourself and other any other users you want as admins with p!admin <user>.

  4. Set up google variables and auth with the commands p!key <key> <value> and p!gauth.

    • GOOGLE_SHEET_NAME example: Page1.
    • GOOGLE_SHEET_ID example: 1dZHWlxlr-CbPocQ2DB9kQH3Y7TnShSyU-N7v_wsRxjv.
  5. If you run into any issues you can contact me at warau#0438 and I'll see if I can help you out.

Setting up your own instance:

  1. Make a config.json file in project root that looks like this example:

        {
            "HOST_URI": "http://82.120.11.72",
            "DISCORD_TOKEN": "NTF54Ti33Ta1OzY1ODQzOeg2.DugcYQ.Oqsr4cbrfm2A8B_kYrOU2b2Obvi",
            "GOOGLE_CLIENT_ID": "201235522132-12lm7bdba46f21e2i5eadrca2mfjkpf0.apps.googleusercontent.com",
            "GOOGLE_CLIENT_SECRET": "n_Ej_KZp5oIo2ggo_2d2FFew",
            "GOOGLE_PROJECT_ID": "pointo-1553760236124",
            "TWITCH_CLIENT_ID": "yuth9hdd21zzs2vev2yo84wxy21rop"
        }
  2. Install dependencies:
    yarn

  3. Build and run the bot:
    yarn start

points's People

Contributors

pzcuong 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.