Sehelitar / Kick.bot

A powerful Kick integration for Streamer.bot
https://sehelitar.tv/
GNU Affero General Public License v3.0
19 stars 4 forks source link

Connection + Reading commands #5

Closed LordGrym closed 1 year ago

LordGrym commented 1 year ago

Yo! First of all, thanks for making this for Streamerbot.

I managed to hook it up yesterday and the login window opened and I logged in all okay. But now going back into Streamerbot today to start setting up commands.

Just looking for a little guidance on the commands firing. Not too familiar with C# but I think I have it set up right. Please see the images attached. Code compiled all good and even set the KickBot.dll and Kick.dll in the Refs just in case. I have tested the command both by right clicking the trigger and also typing !merch in chat. Should return "Test Message" but I get nothing.

Is there a way to tell if it's still connected to my Kick account / chat? Loading SB doesn't bring up any login screen for Kick. So I assume it's still connected or authenticated. Might be something simple I have missed here, please let me know. Cheers!

KickCommand1 KickCommand2

Sehelitar commented 1 year ago

Hi!

Everytime you launch Streamer.bot, a Windows notification should pop up like this :

image

If it doesn't, check if your Windows notifications are muted, or check Streamer.bot logs to see if there's any error.

To set the message argument, you don't need to use C# code. Just use the Set Argument sub-action like this :

image

Write your message :

image

Then send it :

image

Sub-actions order is important. Remember to set your arguments BEFORE calling any C# method. It should work now 😄

Bonus

Now, if you want to know how to use C# code to do it that way, just use CPH.SetArgument like this :

image

You don't need any reference at all, just put the code sub-action before the method call like this :

image
LordGrym commented 1 year ago

You're a legend mate, thanks for this. Will give it a whirl in a moment. Appreciate it!

LordGrym commented 1 year ago

Can confirm it all works. Had the windows notifications muted lol. Thanks man. Is there any way - or any plans on having a different account (bot account) send the messages? Might be a tricky one I imagine. Either way this works a treat, thanks again!

Sehelitar commented 1 year ago

Thank you, I'm really glad you like it 😊

It's way too complicated to have both account connected for now, their public API will make this a lot easier. BUT, with that said, you can actually use a bot account if you want.

You need to create a Kick account for your bot, make it a mod on your channel, connect this extension with your bot account, then modify the C# code like this :

image

That way, the bot will connect to your own channel through the bot account.

To disconnect your currently connected account, close Streamer.bot and delete this folder Streamer.bot.exe.WebView2. Don't worry, it's safe to delete it. The login window will show up then.

LordGrym commented 1 year ago

Worked perfectly. Thanks a ton!

JotaRodriii commented 10 months ago

Good evening,

Could you explain me how you have assigned a kick command to a message sent from streamer.bot?

Even if I save or reload streamer.bot it always comes up with Any

Thanks!