Deep Bot - Twitch Streamer Assistant
Community => General Discussion => Topic started by: Smuel_ on May 25, 2016, 09:23:00 PM
-
Hi all!
Fairly new to the bot so any help really appreciated..
I am trying to create 2 commands - One for my mods to be able to add a count to the first command and the 2nd to read the count of the mod command.
E.G.
Command 1 - !addwin = @user@ has added a win | Smuel_ has won @count@ games!
Command 2 - !wins = Smuel_ has won @count "!addwin"@ games!
Not sure if this is possible or if there is a better way to do it, would really like to be able to do it with the 2 commands!
Thanks guys!
-
Here are some cmds you can use:
[{
"command": "!games",
"group": "games",
"status": true,
"runAsBot": false,
"runAsUserElevated": true,
"startsWithEx": false,
"message": "@if@[@target@||add||@user@ added one win! @savefile@[wins.txt,@calc@[+|1|@readfile@[wins.txt]]]||@if@[@target@||remove||@user@ removed one win! @savefile@[wins.txt,@calc@[-|1|@readfile@[wins.txt]]]||@if@[@target@||reset||@user@ reset the game wins! @savefile@[wins.txt,0]||Error - @user@ use 'add' or 'remove' or 'reset' Error!]]]",
"lastUsed": "2016-05-25T08:48:54.5430949-07:00",
"cooldown": 0,
"accessLevel": 8,
"soundFile": "",
"costEnabled": false,
"costAll": 0,
"costVIPViewer": 0,
"costVIPB": 0,
"costVIPS": 0,
"costVIPG": 0,
"costVIPMod": 0,
"costVIPStreamer": 0,
"OnScreenWidgetEnabled": false,
"OnScreenWidgetName": "",
"OnScreenWidgetTitle": "",
"OnScreenWidgetMessage": "",
"OnScreenWidgetImageLink": "",
"OnScreenWidgetAnimMode": 0,
"OBSRemoteEnabled": false,
"OBSRemoteAction": 0,
"OBSRemoteSceneName": "",
"CommandChaningCmdName": "",
"CommandChaningRunAfter": 0,
"CommandChaningRunAsAdmin": false,
"VIPModEnabled": false,
"VIPModIfViewer": 0,
"VIPModIfVIPB": 0,
"VIPModIfVIPS": 0,
"VIPModIfVIPG": 0,
"VIPModAddDays": 30,
"countdown": "2016-05-25T08:09:31.522294-07:00",
"counter": 18,
"APITarget": false,
"hideFromCmdList": true,
"accessDeniedMsg": "",
"noPointsMsg": "",
"disableChanAccess": false,
"disableWhisperAccess": false,
"disableDiscordAccess": false,
"isSoundVolumeSet": true,
"soundVolume": 100
},
{
"command": "!gameswon",
"group": "games",
"status": true,
"runAsBot": false,
"runAsUserElevated": false,
"startsWithEx": false,
"message": "@user@ - We have won @readfile@[wins.txt]!",
"lastUsed": "2016-05-25T08:48:59.1222854-07:00",
"cooldown": 0,
"accessLevel": 1,
"soundFile": "",
"costEnabled": false,
"costAll": 0,
"costVIPViewer": 0,
"costVIPB": 0,
"costVIPS": 0,
"costVIPG": 0,
"costVIPMod": 0,
"costVIPStreamer": 0,
"OnScreenWidgetEnabled": false,
"OnScreenWidgetName": "",
"OnScreenWidgetTitle": "",
"OnScreenWidgetMessage": "",
"OnScreenWidgetImageLink": "",
"OnScreenWidgetAnimMode": 0,
"OBSRemoteEnabled": false,
"OBSRemoteAction": 0,
"OBSRemoteSceneName": "",
"CommandChaningCmdName": "",
"CommandChaningRunAfter": 0,
"CommandChaningRunAsAdmin": false,
"VIPModEnabled": false,
"VIPModIfViewer": 0,
"VIPModIfVIPB": 0,
"VIPModIfVIPS": 0,
"VIPModIfVIPG": 0,
"VIPModAddDays": 30,
"countdown": "2016-05-25T08:46:54.0993928-07:00",
"counter": 6,
"APITarget": false,
"hideFromCmdList": false,
"accessDeniedMsg": "",
"noPointsMsg": "",
"disableChanAccess": false,
"disableWhisperAccess": false,
"disableDiscordAccess": false,
"isSoundVolumeSet": true,
"soundVolume": 100
}]
!games add = adds ONE win.
!games remove = removes ONE win.
!games reset = resets ALL wins.
The cool thin about this is you can add the text file that it saves in obs and display it ON SCREEN :D
-
Hi Mitch!
Thanks for the reply!
I managed to get it working the exact same way about half an hour ago! :P
I only just managed to get on to update the thread though.
see below :)
Mod command -
Name: !addwin
Response:
@user@ has added a win! | Smuel_ has won @counter@ games!
@savefile@[C:\DeepBot - Twitch Streamer Assistant\Text Files\wincount.txt,@counter@ wins]
Viewer command -
Name: !wins
Response:
Smuel_ has @readfile@[C:\DeepBot - Twitch Streamer Assistant\Text Files\wincount.txt]!
I did encounter a strange thing with the Mod command though - the response doesn't always happen, it will update the .txt file but nothing appears in chat/whisper.
Any tips or is this a known issue?
Many thanks!
-
Each line in the cmd editor is a random pick.
But mine works great :P :D
-
hi there am am trying to make a game where there is a sound played on stream and thay have 35 seconds to tipe !bunker and all the sucsesfaly got in to the bunker win stream points can any one help me