Code Monkey home page Code Monkey logo

kimetaro's Introduction

kimetaro

Kimetaro is the BOT which selects one of lists(Discord/Slack)

How to introduce

  1. Access the authorization page.(https://discordapp.com/api/oauth2/authorize?client_id=569752486483591168&permissions=0&scope=bot)
  2. Select the server which you would like to register. OAuth
  3. Done

How to operate

Call

/hey
決め太郎「おーきに」

Register

/add planA planB
/add "planA" "planB"

NOTE: " (Double quotation) and no quotation can not be mixed ' (Single quotation) not accepted

List(Not implemented)

/list
 1. planA
 2. planB

Kimetaro(Not implemented)

/choice
 ~面白い演出
 決め太郎「決めたで! planBや」

Bye(Not implemented)

/bye
決め太郎「ほな」

For developper

kimetaro loads the discord of access token from environment values. You debug or run kimetaro on your environment, necessary to set your access token as environment values. I recommend you to use direnv, which set environment values automatically.

  1. Please modify .envrc.sample as following
$ vim .envrc.sample
[TOKEN]
ACCESSTOKEN=YOUR_DISCORD_ACCESS_TOKEN
  1. Rename .envrc.sample to .envrc.
  2. Run kimetaro
$ python3 kimetaro.py

Ref direnv

kimetaro's People

Contributors

kamontia avatar chaspy avatar

Watchers

James Cloos avatar  avatar

kimetaro's Issues

Make launch command dynamic

In the current, when /hey is pushed, production app, dev-1, dev-2 and dev-3 respond.

before

/hey

kimetaro says "おーきに”
kimetaro-dev1 says "おーきに”
kimetaro-dev2 says "おーきに”
kimetaro-dev3 says "おーきに”

after

/hey
kimetaro says "おーきに”

/hey-dev1
kimetaro-dev1 says "おーきに”

Automatic assignment of code under reviewing app to developer app

CI step:
In PR(Reviewing), run as developer app in Heroku
After merged into master, application runs as production.

We can use kimetaro-dev[1,2,3] in review time.
Please assign reviewing code to role of kimetaro-dev[1,2,3] automatically on CircleCI and Heroku.

Update /kimetaro method

  • Use /kimetaro instead of /choice command to choose one of lists.
  • Delete /choice command
  • Use emoji like as 🎉

Update add command

When List has the number of MAX_ITEM items

  • Return error message
  • Ignore the message(Not to add into List)

Implement /member method

When one calls /member, add all members in the channel to the list and choose one from among them.

When "kamo" and "chaspy" participate in the channel, they are automatically registered in the list when you enter /member.

[Bug] Quantity limit is not working properly

Quantity limit is not working properly when registering

The quantity limit is not checked each time a task is added.
Therefore, when the number limit is 5, you can add 100 tasks even if you add 100 tasks.

image
image

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.