twitch logging platform
Find a file
2018-03-10 22:04:47 +01:00
api user endpoint too costly 2018-03-06 22:02:20 +01:00
filelog fix logpaths 2017-09-13 21:12:11 +02:00
humanize moved humanizing time in a seperate package 2017-04-15 09:46:39 +02:00
store store users in db for future uses 2018-03-10 21:56:56 +01:00
.env.dist Revert "mysql dep removed just use file system" 2018-03-09 20:33:04 +01:00
.gitignore back to mysql with a better local setup 2018-03-10 20:26:26 +01:00
.travis.yml updated travis cfg 2017-10-07 13:38:47 +02:00
archive.py fix acrhive script 2018-03-05 21:40:27 +01:00
docker-compose.yml store users in db for future uses 2018-03-10 21:56:56 +01:00
Dockerfile updated travis cfg 2017-10-07 13:38:47 +02:00
Jenkinsfile latest tag 2018-03-10 22:04:47 +01:00
LICENSE Added license 2017-03-11 21:53:20 +01:00
main.go store users in db for future uses 2018-03-10 21:56:56 +01:00
prod.yml Revert "mysql dep removed just use file system" 2018-03-09 20:33:04 +01:00
README.MD start of api docs 2017-04-26 19:46:50 +02:00

gempbotgo Build Status

What is this?

gempbot is a bot I maintain for a couple of channels. It's features differ from other bots in that it doesn't support commands etc. yet, it focuses on logging and providing an api for the logs.

API

Root Domain https://api.gempir.com

All Requests only with HTTPS!

RandomQuote

Responds with a random message from the give user in that channel.

  • URL /channel/%channel%/user/%username%/random

  • Methods GET

  • Parameter

    • %channel% Channel from which you want the quote
    • %username% Username from whom you want the quote
  • Success Response

    • Code: 200 Content: gempir: My Random Message
  • Error Response: {"Error":"error finding logs"}

  • Notice

    With the Header Content-Type: "application/json" the response will be in json format. Example: { "channel": "gempbot", "username": "gempir", "message": "MingLee", "timestamp": "2017-03-12 09:43:22" }

Userlog

Responds with the timestamped log of a user in the current month for the given channel.

  • URL /channel/%channel%/user/%username%

  • Methods GET

  • Parameter

    • %channel% Channel that the user wrote in
    • %username% Username that typed in the chat
  • Success Response

    • Code: 200 Content:

[2017-04-1 06:40:24] gempir: HaHaa

[2017-04-1 06:40:36] gempir: KKona

[2017-04-1 06:40:43] gempir: NaM

  • Error Response: {"message":"Not Found"}

  • Notice

    This endpoint will redirect to the current Month and Year so the url will say /channel/%channel%/user/%username%/2017/April