Commit graph

417 commits

Author SHA1 Message Date
lyx0 350283018e query the database on a command and send it if it exists 2022-08-11 01:49:49 +02:00
lyx0 4a4e34a929 add comments explaining funky logic 2022-08-11 01:29:17 +02:00
lyx0 841025cac0 implement adding commands to the database 2022-08-11 01:18:51 +02:00
lyx0 b625d46258 add Get channel method 2022-08-11 01:18:23 +02:00
lyx0 76e7a4f755 add command model 2022-08-11 01:18:04 +02:00
lyx0 a6c164f8e0 add command migrations 2022-08-11 01:17:33 +02:00
lyx0 67fb901065 move config and Application struct to models 2022-08-10 22:06:46 +02:00
lyx0 a0e724d009 get user level from database for command permissions 2022-08-10 22:06:36 +02:00
lyx0 94f21a2a66 add initial data to migration 2022-08-10 18:57:50 +02:00
lyx0 fa9566d6ce get channels from database and join them on startup 2022-08-10 18:16:39 +02:00
lyx0 68faa1b7a4 require lib/pq directly 2022-08-10 16:52:37 +02:00
lyx0 998ad5c907 add debug command 2022-08-10 02:18:39 +02:00
lyx0 b91dc8d60a add updating user level 2022-08-10 00:14:54 +02:00
lyx0 332de23f64 implement GetAllChannels functionality 2022-08-09 23:19:08 +02:00
lyx0 364ea24ca0 add channel and user database functionality onto application 2022-08-09 22:49:48 +02:00
lyx0 1728fb54f9 add adding and deleting user to the database 2022-08-09 22:34:12 +02:00
lyx0 fda0e7d8b8 add user models 2022-08-09 21:25:44 +02:00
lyx0 471b02559f merge whisper and private messages into one file 2022-08-09 21:25:32 +02:00
lyx0 58b02f178e remove announce and check if the channel is already in the database 2022-08-09 21:24:46 +02:00
lyx0 3abbeba46f change joined_at to added_at 2022-08-09 20:08:32 +02:00
lyx0 3f16128812 delete channel from database 2022-08-09 19:50:46 +02:00
lyx0 3af6d60641 remove print statement so jq does not crash 2022-08-09 02:25:34 +02:00
lyx0 1c268cd09a add channel to database 2022-08-09 01:09:53 +02:00
lyx0 07a39a7fcb add channel models 2022-08-09 00:07:32 +02:00
lyx0 54d1b93b2d add database models for twitch channel 2022-08-08 23:58:38 +02:00
lyx0 7ab1fe8e73 add comments, clean up 2022-08-08 23:58:25 +02:00
lyx0 53481c274e add migration files 2022-08-08 23:58:10 +02:00
lyx0 6fbe68a0a4 move config to main file and add database connection 2022-08-08 23:13:33 +02:00
lyx0 214d405743 add lib/pq 2022-08-08 23:12:59 +02:00
lyx0 fe17f5b3cd pass down Application struct 2022-08-08 23:12:50 +02:00
lyx0 149712680a restructure commands 2022-08-08 16:43:40 +02:00
lyx0 8e8342998f add followage and first line commands 2022-08-08 16:43:21 +02:00
lyx0 82927a97dd add xkcd command 2022-08-08 13:45:37 +02:00
lyx0 ea39e55342 add coinflip command 2022-08-08 13:17:42 +02:00
lyx0 27bd336a8f add commands to search for emotes 2022-08-07 21:43:40 +02:00
lyx0 863b37f95c change to go version 1.19 2022-08-07 21:43:21 +02:00
lyx0 c327491925 add helpers for privileges and random numbers 2022-08-07 21:43:09 +02:00
lyx0 cfb320b017 add ffz and bttv command 2022-08-07 18:10:40 +02:00
lyx0 6fed6fc265
Merge pull request #2 from lyx0/rewrite 2022-08-07 15:31:04 +00:00
lyx0 df5212e1a9 try fixing merge conflict 2022-08-07 17:29:12 +02:00
lyx0 b31468ae3c add currency command 2022-08-07 17:24:47 +02:00
lyx0 f33a7382ad add currency command 2022-08-07 17:24:42 +02:00
lyx0 d7e38bb17c add ping command and uptime time helper 2022-08-07 16:36:06 +02:00
lyx0 47e7091a09 add humanize time package 2022-08-07 16:35:49 +02:00
lyx0 ed8d09eae2 use package io since io/ioutil has been deprecated 2022-08-07 16:13:00 +02:00
lyx0 723d4ed9a5 use package io since io/ioutil has been deprecated 2022-08-07 16:11:33 +02:00
lyx0 be9962f9f2 add tweet command 2022-08-07 16:08:30 +02:00
lyx0 802dbd2caf add jq option 2022-08-07 16:08:25 +02:00
lyx0 44e7972efc rename common.go to send.go 2022-08-07 16:08:20 +02:00
lyx0 33f61e2f0f cleanup 2022-08-07 04:35:03 +02:00