diff --git a/cmd/nourybot/commands.go b/cmd/nourybot/commands.go index 4e5ce0c..a0962aa 100644 --- a/cmd/nourybot/commands.go +++ b/cmd/nourybot/commands.go @@ -140,7 +140,7 @@ func (app *application) handleCommand(message twitch.PrivateMessage) { } case "nourybot": - reply = "Lidl Twitch bot made by @nourylul. Prefix: ()" + reply = "Lidl Twitch bot made by @nouryxd. Prefix: ()" case "phonetic": if msgLen == 1 { diff --git a/cmd/nourybot/main.go b/cmd/nourybot/main.go index 7245aa3..40db497 100644 --- a/cmd/nourybot/main.go +++ b/cmd/nourybot/main.go @@ -80,7 +80,7 @@ func main() { switch envFlag { case "dev": - cfg.db.dsn = os.Getenv("DEV_DSN") + cfg.db.dsn = os.Getenv("LOCAL_DSN") case "prod": cfg.db.dsn = os.Getenv("REMOTE_DSN") } @@ -162,7 +162,7 @@ func main() { // Special rule for #pajlada. if message.Message == "!nourybot" { - app.Send(message.Channel, "Lidl Twitch bot made by @nourylul. Prefix: ()", message) + app.Send(message.Channel, "Lidl Twitch bot made by @nouryxd. Prefix: ()", message) } } }) @@ -170,9 +170,9 @@ func main() { app.TwitchClient.OnConnect(func() { common.StartTime() - app.TwitchClient.Join("nourylul") + app.TwitchClient.Join("nouryxd") app.TwitchClient.Join("nourybot") - app.TwitchClient.Say("nourylul", "xD!") + app.TwitchClient.Say("nouryxd", "xD!") app.TwitchClient.Say("nourybot", "gopherDance") // Successfully connected to Twitch diff --git a/migrations/000001_create_channels_table.up.sql b/migrations/000001_create_channels_table.up.sql index d0448bf..77fbde7 100644 --- a/migrations/000001_create_channels_table.up.sql +++ b/migrations/000001_create_channels_table.up.sql @@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS channels ( ); INSERT INTO channels (added_at,login,twitchid) VALUES - (NOW(),'nourylul','31437432'), + (NOW(),'nouryxd','31437432'), (NOW(),'nourybot','596581605'), (NOW(),'uudelleenkytkeytynyt','465178364'), (NOW(),'xnoury','197780373'); diff --git a/migrations/000002_create_users_table.up.sql b/migrations/000002_create_users_table.up.sql index 84beeb7..02f2ec9 100644 --- a/migrations/000002_create_users_table.up.sql +++ b/migrations/000002_create_users_table.up.sql @@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS users ( ); INSERT INTO users (added_at,login,twitchid,"level",location,lastfm_username) VALUES - (NOW(),'nourylul','31437432',1000,'vilnius','nouryqt'), + (NOW(),'nouryxd','31437432',1000,'vilnius','nouryqt'), (NOW(),'nourybot','596581605',1000,'',''), (NOW(),'uudelleenkytkeytynyt','465178364',1000,'',''), (NOW(),'xnoury','197780373',500,'',''), diff --git a/migrations/000004_create_timers_table.up.sql b/migrations/000004_create_timers_table.up.sql index 20ad2d2..34a5806 100644 --- a/migrations/000004_create_timers_table.up.sql +++ b/migrations/000004_create_timers_table.up.sql @@ -8,8 +8,8 @@ CREATE TABLE IF NOT EXISTS timers ( ); INSERT INTO timers (name,identifier,"text",channel,repeat) VALUES - ('nourylul-60m','678efbe2-fa2f-4849-8dbc-9ec32e6ffd3b','timer every 60 minutes :)','nourylul','60m'), - ('nourylul-2m','63142f10-1672-4353-8b03-e72f5a4dd566','timer every 2 minutes :)','nourylul','2m'), + ('nouryxd-60m','678efbe2-fa2f-4849-8dbc-9ec32e6ffd3b','timer every 60 minutes :)','nouryxd','60m'), + ('nouryxd-2m','63142f10-1672-4353-8b03-e72f5a4dd566','timer every 2 minutes :)','nouryxd','2m'), ('nourybot-60m','2ad01f96-05d3-444e-9dd6-524d397caa96','timer every 60 minutes :)','nourybot','60m'), ('nourybot-1h','2353fd22-fef9-4cbd-b01e-bc8804992f4c', 'timer every 1 hour :)','nourybot','1h'), ('xnoury-15m','6e178e14-36c2-45e1-af59-b5dea4903fee','180 minutes timer :)','xnoury','180m'); diff --git a/migrations/000005_create_uploads_table.up.sql b/migrations/000005_create_uploads_table.up.sql index 5396edc..fff8f72 100644 --- a/migrations/000005_create_uploads_table.up.sql +++ b/migrations/000005_create_uploads_table.up.sql @@ -12,6 +12,6 @@ CREATE TABLE IF NOT EXISTS uploads ( ); INSERT INTO uploads (added_at,twitchlogin,twitchid,twitchchannel,twitchmessage,filehoster,downloadurl,uploadurl,identifier) VALUES - (NOW(),'nourylul','31437432','nourylul','()yaf https://www.youtube.com/watch?v=3rBFkwtaQbU','yaf','https://www.youtube.com/watch?v=3rBFkwtaQbU','https://i.yaf.ee/LEFuX.webm','a4af2284-4e13-46fa-9896-393bb1771a9d'), - (NOW(),'uudelleenkytkeytynyt','465178364','nourylul','()gofile https://www.youtube.com/watch?v=st6yupvNkVo','gofile','https://www.youtube.com/watch?v=st6yupvNkVo','https://gofile.io/d/PD1QNr','4ec952cc-42c0-41cd-9b07-637b4ec3c2b3'); + (NOW(),'nouryxd','31437432','nouryxd','()yaf https://www.youtube.com/watch?v=3rBFkwtaQbU','yaf','https://www.youtube.com/watch?v=3rBFkwtaQbU','https://i.yaf.ee/LEFuX.webm','a4af2284-4e13-46fa-9896-393bb1771a9d'), + (NOW(),'uudelleenkytkeytynyt','465178364','nouryxd','()gofile https://www.youtube.com/watch?v=st6yupvNkVo','gofile','https://www.youtube.com/watch?v=st6yupvNkVo','https://gofile.io/d/PD1QNr','4ec952cc-42c0-41cd-9b07-637b4ec3c2b3'); diff --git a/migrations/000006_create_command_logs_table.up.sql b/migrations/000006_create_command_logs_table.up.sql index cfe497a..fa45b7d 100644 --- a/migrations/000006_create_command_logs_table.up.sql +++ b/migrations/000006_create_command_logs_table.up.sql @@ -12,5 +12,5 @@ CREATE TABLE IF NOT EXISTS commands_logs ( ); INSERT INTO commands_logs (added_at,twitch_login,twitch_id,twitch_channel,twitch_message,command_name,user_level,identifier,raw_message) VALUES - (NOW(),'nourylul','31437432','nourybot','()weather Vilnius','weather',1000,'8441e97b-f622-4c42-b9b1-9bf22ba0d0bd','@badge-info=;badges=moderator/1,game-developer/1;color=#00F2FB;display-name=nourylul;emotes=;first-msg=0;flags=;id=87d40f5c-8c7c-4105-9f57-b1a953bb42d0;mod=1;returning-chatter=0;room-id=596581605;subscriber=0;tmi-sent-ts=1696945359165;turbo=0;user-id=31437432;user-type=mod :nourylul!nourylul@nourylul.tmi.twitch.tv PRIVMSG #nourybot :()weather Vilnius'); + (NOW(),'nouryxd','31437432','nourybot','()weather Vilnius','weather',1000,'8441e97b-f622-4c42-b9b1-9bf22ba0d0bd','@badge-info=;badges=moderator/1,game-developer/1;color=#00F2FB;display-name=nouryxd;emotes=;first-msg=0;flags=;id=87d40f5c-8c7c-4105-9f57-b1a953bb42d0;mod=1;returning-chatter=0;room-id=596581605;subscriber=0;tmi-sent-ts=1696945359165;turbo=0;user-id=31437432;user-type=mod :nouryxd!nouryxd@nouryxd.tmi.twitch.tv PRIVMSG #nourybot :()weather Vilnius'); diff --git a/migrations/000007_create_sent_messages_logs_table.up.sql b/migrations/000007_create_sent_messages_logs_table.up.sql index d671c7f..22a8723 100644 --- a/migrations/000007_create_sent_messages_logs_table.up.sql +++ b/migrations/000007_create_sent_messages_logs_table.up.sql @@ -12,4 +12,4 @@ CREATE TABLE IF NOT EXISTS sent_messages_logs ( ); INSERT INTO sent_messages_logs (added_at,twitch_channel,twitch_message,context_command_name,context_username,context_message,context_user_id,identifier,context_raw) VALUES - (NOW(),'nourybot','Weather for Vilnius, LT: Feels like: 8.07°C. Currently 8.65°C with a high of 9.29°C and a low of 8.49°C, humidity: 66%, wind: 1.54m/s.','weather','nourylul','()weather Vilnius','31437432','654f9761-b2d4-4975-a4fd-84c6ec7f2eb8','@badge-info=;badges=moderator/1,game-developer/1;color=#00F2FB;display-name=nourylul;emotes=;first-msg=0;flags=;id=357d94a4-024e-49ea-ab3d-d97286cd0492;mod=1;returning-chatter=0;room-id=596581605;subscriber=0;tmi-sent-ts=1696952295788;turbo=0;user-id=31437432;user-type=mod :nourylul!nourylul@nourylul.tmi.twitch.tv PRIVMSG #nourybot :()weather Vilnius'); + (NOW(),'nourybot','Weather for Vilnius, LT: Feels like: 8.07°C. Currently 8.65°C with a high of 9.29°C and a low of 8.49°C, humidity: 66%, wind: 1.54m/s.','weather','noury','()weather Vilnius','31437432','654f9761-b2d4-4975-a4fd-84c6ec7f2eb8','@badge-info=;badges=moderator/1,game-developer/1;color=#00F2FB;display-name=noury;emotes=;first-msg=0;flags=;id=357d94a4-024e-49ea-ab3d-d97286cd0492;mod=1;returning-chatter=0;room-id=596581605;subscriber=0;tmi-sent-ts=1696952295788;turbo=0;user-id=31437432;user-type=mod :nouryxd!nouryxd@nouryxd.tmi.twitch.tv PRIVMSG #nourybot :()weather Vilnius');