Commit graph

310 commits

Author SHA1 Message Date
lyx0 8532494aab fix the mess downloads/uploads are 2023-10-05 19:33:07 +02:00
lyx0 4626fd13ee feat: add ()cb command that downloads a video using yt-dlp and then uploads it to catbox 2023-10-05 18:47:54 +02:00
lyx0 80d9ed9fdc add uuid identifiers for timers 2023-10-04 00:05:38 +02:00
lyx0 ec9045d2b6 fix: adjust the timer prefix lengths to the new command 2023-10-03 22:58:03 +02:00
lyx0 126fb7c1e9 spawn a new goroutine for the ()dl command and for sending messages 2023-10-03 19:33:31 +02:00
lyx0 230aa530eb fix: configure fileuploader url in a more disocverable place 2023-10-03 19:16:45 +02:00
lyx0 68f5cbbb9e fix: fixed app restart after uploading file from ()dl usage 2023-10-03 18:43:43 +02:00
lyx0 5363eb45cc move downloader to commands. package 2023-10-03 17:23:52 +02:00
lyx0 5ae08fad7c feat: ()dl command: download given video with yt-dlp, then upload it to imagehost and post the link in response 2023-10-03 17:02:11 +02:00
lyx0 2e7f672644 fix: replace log.Panic with app.Log.Error instead 2023-10-03 17:01:12 +02:00
lyx0 9f75c8c31b feat: add download command and upload to catbox
adds a ()dl command that downloads a video using yt-dlp, then uploads the videofile to catbox and sends the catbox link
2023-10-02 00:35:27 +02:00
lyx0 67e7a2e655 add dl command to download videos with yt-dlp 2023-09-27 16:44:42 +02:00
lyx0 f2d95ac9c6 fix error messagesg 2023-09-19 14:06:37 +02:00
lyx0 800b837f55 remove email debugs 2023-09-16 19:39:10 +02:00
lyx0 90031bfe40 add pastebin upload functionality and implement it for uer and command debugging 2023-09-16 17:18:14 +02:00
lyx0 10bd7c0342 add debug command for commands 2023-09-14 17:40:35 +02:00
lyx0 dabbce14fe add debug user command that sends user information to my email 2023-09-08 03:03:57 +02:00
lyx0 14162e006a add mail functionality to replace twitch whispers 2023-09-08 02:26:00 +02:00
lyx0 9825967182 add lastfm functionality 2023-09-08 01:36:41 +02:00
lyx0 3e351431b2 add database command handling 2023-09-08 00:18:09 +02:00
lyx0 b330d5aa56 add database models, add timer functionality 2023-09-07 22:34:53 +02:00
lyx0 ec86f396bd add more commands 2023-09-07 21:09:33 +02:00
lyx0 56d7a1bc1d implement a few commands 2023-09-07 20:43:16 +02:00
lyx0 b2d7860cc2 refactor send/command functionality 2023-09-07 20:12:09 +02:00
lyx0 7c06a638b0 add basic command handling skeleton 2023-08-08 02:37:37 +02:00
lyx0 2a54f591c8 rename SUPABASE_DSN to REMOTE_DSN 2023-08-08 01:22:49 +02:00
lyx0 3c852ba793 upgrade to go-twitch-irc v4 2023-08-08 01:00:14 +02:00
lyx0 f094d4c5dd upgrade to go-twitch-irc v4 2023-08-05 20:12:07 +02:00
lyx0 b88b4345f5 start rewrite 2023-08-04 20:57:40 +02:00
lyx0 0d313b7b0a add command with basic russian phonetic translation for a given input text 2023-04-13 23:37:14 +02:00
lyx0 202513ee3e load command help text into redis at start 2023-04-13 20:48:11 +02:00
lyx0 39288bfd1c add redis storage for timers 2023-04-13 03:26:20 +02:00
lyx0 512c3dc219 update .env example 2023-04-12 21:35:17 +02:00
lyx0 9896d07dd7 use twitch id instead of twitch username 2023-03-05 21:14:33 +00:00
lyx0 777329897a switch from twitch usernames to twitch userid 2023-03-05 20:57:19 +00:00
lyx0 6b255a2bb5 get a users level from their twitch id instead of twitch username 2023-03-05 20:07:41 +00:00
lyx0 a23e7aafe9 check if a user is registered in the database everytime a command is used and if not register said user 2023-03-05 19:44:34 +00:00
lyx0 8fa67c9c97 move CheckLastFM to user and rename to UserCheckLastFM 2023-03-05 18:26:59 +00:00
lyx0 daa0469a84 implement setting a location for your user that is checked when no argument is supplied to the weather command 2023-03-05 17:56:02 +00:00
lyx0 d5710d727f migrate lastfm_username to the user model instead of seperate database table 2023-03-05 17:42:34 +00:00
lyx0 012dfc03a6 allow a user to set his own location 2023-03-04 22:37:31 +00:00
lyx0 2e7b115795 implement setting a lastfm account 2023-03-04 20:26:02 +00:00
lyx0 eb692020f7 check if a user was registered in the database if no argument for lastfm command is provided 2023-03-04 19:19:38 +00:00
lyx0 d507bfafa0 add command looking up a users recently played last.fm track 2023-03-04 17:58:44 +00:00
lyx0 b8625e1901 add a command to debug commands and output information about a provided command name 2023-03-04 05:00:00 +00:00
lyx0 a3e3ee129c add tweet command help text 2023-03-04 04:34:46 +00:00
lyx0 e5560bb1ed add special !nourybot and ()nourybot command that identifies who made it 2023-03-04 04:14:00 +00:00
lyx0 b2c8c4ab61 add help command that returns a help text about a command 2023-03-04 03:14:14 +00:00
lyx0 890a060c1c clean up comments 2023-03-04 03:13:24 +00:00
lyx0 6ad9d71b68 cleanup comments for AddCommand handler 2023-03-04 01:52:52 +00:00
lyx0 5dd6402941 add help column for commands and implement a command setting a new help text 2023-03-04 01:29:29 +00:00
lyx0 4be80755fc add 'help' column to command model 2023-03-04 00:04:28 +00:00
lyx0 e5a1b3553f simplify command creation 2023-03-03 23:26:11 +00:00
lyx0 6448c71fc1 remove environment config variable 2023-03-03 21:34:52 +00:00
lyx0 e2a4e32dae add env flag for database connection 2023-03-03 21:16:32 +00:00
lyx0 76c78dfbb1 refactor from pkg to internal 2023-01-04 15:32:17 +01:00
lyx0 ee893cbea3 clean up 2023-01-04 15:24:40 +01:00
lyx0 b93d10f625 remove unused twitchAccessToken 2022-09-01 15:12:25 +00:00
lyx0 48e16c06a9 initialize the helix client in a more elegant way 2022-08-30 20:27:20 +02:00
lyx0 f5d6eca30c add twitch helix client 2022-08-29 21:24:30 +02:00
lyx0 95d8268a77 clean up editing timer 2022-08-27 22:00:17 +02:00
lyx0 7f7839d9cb add logic for editing a timer 2022-08-27 17:38:03 +02:00
lyx0 0b117a7ac4 check the time interval before trying to add it as a timer 2022-08-26 03:42:19 +02:00
lyx0 4ff29bcbaa check the time format string when creating a new timer. Format should be like 30m, 10h, or 10h30m 2022-08-26 02:27:42 +02:00
lyx0 5abb28ec5d clean up timers 2022-08-26 02:01:43 +02:00
lyx0 e8a4888489 fix only the last timer running 2022-08-25 05:43:15 +02:00
lyx0 f7c3d4659c actually delete and stop a timer. to test ()addtimer xD 5s xD and then ()deletetimer xD 2022-08-25 04:42:37 +02:00
lyx0 b55b3ed0cb delete a timer from the database 2022-08-24 21:00:09 +02:00
lyx0 9bf18d3cdf add scheduler onto application struct and set the timer on creation 2022-08-23 16:37:45 +02:00
lyx0 ca1f4a35c4 add join messages to my other channels 2022-08-22 03:37:22 +02:00
lyx0 f030a9c2bf get timers from database and start them on startup 2022-08-22 03:06:23 +02:00
lyx0 6029d495b2 add a timer into the database 2022-08-22 02:13:07 +02:00
lyx0 feea944f64 start implementing timers 2022-08-21 21:04:27 +02:00
lyx0 61f15ef9e3 move application and config struct to main 2022-08-20 15:14:05 +02:00
lyx0 c6596f7733 add cors headers 2022-08-18 22:01:48 +02:00
lyx0 7dd3bf3f14 add simple gocron timer 2022-08-18 18:57:29 +02:00
lyx0 661a30542b add NotFound and MethodNotAllowed routes 2022-08-17 23:14:05 +02:00
lyx0 7144b0d61d add logs 2022-08-17 21:17:29 +02:00
lyx0 5e3ee66bae update a command through the api 2022-08-17 20:57:25 +02:00
lyx0 8e0a307b11 add delete command route for the api 2022-08-17 18:07:50 +02:00
lyx0 b4c8c7bc59 add a command to the database through the api 2022-08-17 15:32:42 +02:00
lyx0 650e7f450f pass in a command to the insert method instead of name, text 2022-08-17 14:45:35 +02:00
lyx0 0099236bc8 clean up 2022-08-16 18:05:55 +02:00
lyx0 3843c76906 start implementing an api for the commands 2022-08-16 16:35:45 +02:00
lyx0 274a34cf7d clean up weather command 2022-08-15 17:38:10 +02:00
lyx0 73299f776c add openweathermap key 2022-08-15 17:37:35 +02:00
lyx0 f3bcd83855 add current weather command 2022-08-15 15:04:43 +02:00
lyx0 4125967c63 set default command category to uncategorized instead of default 2022-08-15 13:53:07 +02:00
lyx0 96eedbe293 add command category in database and add an command to add the category from 2022-08-15 00:53:41 +02:00
lyx0 a871dcd3cd clean up 2022-08-14 20:33:49 +02:00
lyx0 da412602f8 remove accidental space 2022-08-13 15:56:35 +02:00
lyx0 4374119f4c fix comments 2022-08-12 16:59:58 +02:00
lyx0 f241f2a816 add comments 2022-08-12 02:50:45 +02:00
lyx0 a2c9578b06 add comments 2022-08-12 00:49:58 +02:00
lyx0 29b6b3c952 add comments 2022-08-12 00:08:39 +02:00
lyx0 fbe3f6dc1e add comments 2022-08-11 23:34:05 +02:00
lyx0 b832ec63b6 make the commandPrefix a config value 2022-08-11 23:34:00 +02:00
lyx0 28b318dc92 move basic message routing into main function 2022-08-11 22:44:08 +02:00
lyx0 2f6657bdff add comments 2022-08-11 22:15:30 +02:00
lyx0 f9b94de757 cleanup commands 2022-08-11 21:49:19 +02:00
lyx0 704a6a9470 add way to delete commands 2022-08-11 21:49:15 +02:00
lyx0 4e4b26b43a rename EditCommand to EditCommandLevel 2022-08-11 21:01:13 +02:00
lyx0 afc2b74ff0 add some more placeholder commands 2022-08-11 20:35:34 +02:00
lyx0 ceb9c4b98d add command to change the level of a command in the database 2022-08-11 20:35:22 +02:00
lyx0 a970aa470d implement permissions for commands that checks a users level to be high enough 2022-08-11 19:31:58 +02:00
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 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 fa9566d6ce get channels from database and join them on startup 2022-08-10 18:16:39 +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 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 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 7ab1fe8e73 add comments, clean up 2022-08-08 23:58:25 +02:00
lyx0 6fbe68a0a4 move config to main file and add database connection 2022-08-08 23:13:33 +02:00
lyx0 fe17f5b3cd pass down Application struct 2022-08-08 23:12:50 +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 cfb320b017 add ffz and bttv command 2022-08-07 18:10:40 +02:00
lyx0 b31468ae3c add currency command 2022-08-07 17:24:47 +02:00
lyx0 d7e38bb17c add ping command and uptime time helper 2022-08-07 16:36:06 +02:00
lyx0 be9962f9f2 add tweet command 2022-08-07 16:08:30 +02:00
lyx0 33f61e2f0f cleanup 2022-08-07 04:35:03 +02:00
lyx0 c5d9804c21 remove unused comments and clean up 2022-08-07 03:17:29 +02:00
lyx0 edae669bee replace logrus with zap 2022-08-07 03:09:09 +02:00
lyx0 effffff270 fix dereference error somehow 2022-08-07 02:27:40 +02:00
lyx0 fee71708e7 restructure 2022-08-07 01:34:31 +02:00
lyx0 86c7217974 start rewrite 2022-08-06 23:45:02 +02:00
lyx0 aa565a86e9 start rewrite 2022-06-21 00:31:17 +02:00
lyx0 d4d15a82e3 asd 2022-06-21 00:08:37 +02:00
lyx0 40da7b90f8 add send helper function which checks the banphrase api 2022-06-04 20:38:14 +02:00
lyx0 a7ab565b24 start implementing basic command handler 2022-06-04 20:06:44 +02:00
lyx0 2ee85c47d7 use logrus logger instead of standard logger 2022-06-04 03:03:51 +02:00
lyx0 9293b6ff00 add comments, print a message on successful connection 2022-06-04 02:56:28 +02:00
lyx0 956b1a8614 add privatemessage base 2022-06-04 02:40:43 +02:00
lyx0 82626346ce use go-twitch-irc v3 instead 2022-06-04 02:29:05 +02:00
lyx0 8375f90265 start rewrite 2022-06-04 02:21:20 +02:00
lyx0 a2a99b81eb start new 2022-04-15 23:11:42 +02:00
lyx0 ddca49605c add database models 2022-03-10 23:41:13 +01:00