Giter Club home page Giter Club logo

scalert's Introduction

scalert

An event alerter bot for StarCraft.

Installation

Clone the repo.

Usage

SCALERT_TOKEN="your discord token here" SCALERT_CLIENTID="your discord clientid here" crystal run src/scalert.cr

Development

Write code.

Contributing

  1. Fork it ( https://github.com/vendethiel/scalert/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

scalert's People

Contributors

vendethiel avatar

Watchers

 avatar James Cloos avatar  avatar

scalert's Issues

use IDs

I fixed the API to emit IDs (again)

use those

implement `!event next <event>`

if real fancy, should:

  • first exact match
  • then try "starts with"
  • then try contains

Should post about the 2 next events top.

Examples:

Bad: (shouln't include name to prevent injections/whatever)

user> !next BAD
bot> No upcoming event.

Exact match, one result:

user> !next Blizzcon: Qualifiers First Round
bot> Next Blizzcon: Qualifiers First Round in 1d 5h.

Exact match, two results:

user> !next GSL Code S
bot> Next GSL Code S in 1d 5, then 3d.

Inexact match, twice same:

user> !next GSL
bot> Next GSL Code S in 1d 5, then 3d.

Inexact match, different:

user> !next BTSL
bot> Next BSL: Europe in 1d 5, then BTSL: Asia in 1d 12h.

actual errors

Store errors in some log.

Group events before filtering out "long" events

Example:

> !events
UPCOMING
 * WCS Regional Challengers - 32m, then 9h 32m, then 20h 2m
> !events all
UPCOMING
 * WCS Regional Challengers - 29m, then 9h 29m, then 19h 59m, then 1d, then 1d 9h, then 2 days

Should give the same results

I suppose the folded event's "date" can be the date of the first one.

Info command

Add a command like !info which shows which servers the bot is on, as well as which features are enabled on which channels.

This should also help cleanup the config with servers that don't exist anymore (or where the bot was kicked from) and channels that were deleted/that the bot doesn't have access to anymore.

add template

first only templates for like "SOON", "LIVE" and "UPCOMING".

need to decide how to do when there are multiple lines

(somewhat) depends on #22

Proper ignorelist

  • Rename banlist to ignorelist
  • Add !ignore +/-/etc
  • Add a (admin-only) listing (!ignore by itself?) that "ping" so admin can see who they are

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.