From e6e6de0381623d35389bb26be677547ad3d48558 Mon Sep 17 00:00:00 2001 From: bryce Date: Tue, 15 Jul 2025 11:35:58 +1200 Subject: [PATCH] Update Readme.md and work on the CLI Readme.md update - added cli usage section CLI work continues (not finished) --- README.md | 11 ++++++++++- cmd/cli/main.go | 6 +++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b0666c..a02f16c 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,20 @@ This bot is a CMDli or Terminal application that should run on most systems. The Theory is this should be a Light Weight application and to that point, it can only handle Text based (Chat) commands. +>### CMDli interface / usage +> [ $twitchbot ] will start the bot and show bot:> +> the options you can use are: +> bot:>title [get|set] - view the Current Title or set a new one +> bot:>category [get|set] - view the Current Category or set a new one +> bot:>list [categories|cmd] - catergories = view a list of categories from twitch | cmd = shows url for the commands list for that permission level or all commands if isn't specified +> bot:>stats [--watch | --interval=2m] - watch command usage & how many times the commands have been used in the lifetime of the bot +> bot:>uptime - shows your current stream uptime +> bot:>cmd [add|del|edit] [trigger] (response only required if adding or editing a command) + >[!NOTE] >While there is a command response for greetings, the bot should greet every user upon FirstWords (of the stream). >The bot sohuld also NOT greet userNames that are removed from chat via WizeBot. - ## The Commands it comes with: >[!NOTE] diff --git a/cmd/cli/main.go b/cmd/cli/main.go index b533262..e014844 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -91,6 +91,10 @@ func dispatch(apiClient *twitchapi.Client, streamerChan string, args []string, w } case "title": - + if len(args)<2 { fmt.Println("usage: title get|set "); return } + sub := strings.ToLower(args[1]) + switch sub { + case "get": + } } }