4. Bot commands
Next we need to setup bot commands for you or your mods to use in chat or in Discord (if your bot supports Discord commands). You can of course allow your VIPs to do it too - userlevel is up to you.
You can name the commands whatever you like, I just used the ones below.
Nightbot
Commands |
Message |
Userlevel |
Response in chat |
!startstopwatch |
$(urlfetch https://api.solkku.com/stopwatch/?name=test&token=token&action=Start) |
Moderator |
/me The stopwatch was started/resumed! |
!stopstopwatch |
$(urlfetch https://api.solkku.com/stopwatch/?name=test&token=token&action=Stop) |
Moderator |
/me The stopwatch was stopped/paused! |
!resetstopwatch |
$(urlfetch https://api.solkku.com/stopwatch/?name=test&token=token&action=Reset) |
Moderator |
/me The stopwatch was reset! |
!togglestopwatch |
$(urlfetch https://api.solkku.com/stopwatch/?name=test&token=token&action=Toggle) |
Moderator |
/me Hiding OR Showing the stopwatch! |
StreamLabs ChatBot
Commands |
Message |
Userlevel |
Response in chat |
!startstopwatch |
$readapi(https://api.solkku.com/stopwatch/?name=test&token=token&action=Start) |
Moderator |
/me The stopwatch was started/resumed! |
!stopstopwatch |
$readapi(https://api.solkku.com/stopwatch/?name=test&token=token&action=Stop) |
Moderator |
/me The stopwatch was stopped/paused! |
!resetstopwatch |
$readapi(https://api.solkku.com/stopwatch/?name=test&token=token&action=Reset) |
Moderator |
/me The stopwatch was reset! |
!togglestopwatch |
$readapi(https://api.solkku.com/stopwatch/?name=test&token=token&action=Toggle) |
Moderator |
/me Hiding OR Showing the stopwatch! |
StreamLabs CloudBot
Commands |
Message |
Userlevel |
Response in chat |
!startstopwatch |
{readapi.https://api.solkku.com/stopwatch/?name=test&token=token&action=Start} |
Moderator |
/me The stopwatch was started/resumed! |
!stopstopwatch |
{readapi.https://api.solkku.com/stopwatch/?name=test&token=token&action=Stop} |
Moderator |
/me The stopwatch was stopped/paused! |
!resetstopwatch |
{readapi.https://api.solkku.com/stopwatch/?name=test&token=token&action=Reset} |
Moderator |
/me The stopwatch was reset! |
!togglestopwatch |
{readapi.https://api.solkku.com/stopwatch/?name=test&token=token&action=Toggle} |
Moderator |
/me Hiding OR Showing the stopwatch! |
StreamElements Bot
Commands |
Message |
Userlevel |
Response in chat |
!startstopwatch |
${customapi.https://api.solkku.com/stopwatch/?name=test&token=token&action=Start} |
Moderator |
/me The stopwatch was started/resumed! |
!stopstopwatch |
${customapi.https://api.solkku.com/stopwatch/?name=test&token=token&action=Stop} |
Moderator |
/me The stopwatch was stopped/paused! |
!resetstopwatch |
${customapi.https://api.solkku.com/stopwatch/?name=test&token=token&action=Reset} |
Moderator |
/me The stopwatch was reset! |
!togglestopwatch |
${customapi.https://api.solkku.com/stopwatch/?name=test&token=token&action=Toggle} |
Moderator |
/me Hiding OR Showing the stopwatch! |
Stream Deck
Important: Remember to check the "Access in background" / "GET request in background" option when adding each one!
Button Action |
URL |
Start/resume stopwatch |
https://api.solkku.com/stopwatch/?name=test&token=token&action=Start |
Stop/pause stopwatch |
https://api.solkku.com/stopwatch/?name=test&token=token&action=Stop |
Reset stopwatch |
https://api.solkku.com/stopwatch/?name=test&token=token&action=Reset |
Toggle stopwatch visibility |
https://api.solkku.com/stopwatch/?name=test&token=token&action=Toggle |