Feat: renotify bot btn and handler
This commit is contained in:
		| @@ -1,10 +1,18 @@ | ||||
| {{ define "addbot" }} | ||||
| <div> | ||||
|   {{ if eq .Room.BlueTeam.Mime "" }} | ||||
|   <button hx-get="/add-bot?team=blue&role=mime" hx-target="#addbot" class="bg-blue-400 text-black px-4 py-2 rounded">Add Bot Mime</button> | ||||
|   {{ end }} | ||||
|   {{ if eq .Room.RedTeam.Mime "" }} | ||||
|   <button hx-get="/add-bot?team=red&role=mime" hx-target="#addbot" class="bg-red-400 text-black px-4 py-2 rounded">Add Bot Mime</button> | ||||
|   {{ end }} | ||||
| </div> | ||||
| <div> | ||||
|   {{ if not .Room.BlueTeam.Guessers }} | ||||
|   <button hx-get="/add-bot?team=blue&role=guesser" hx-target="#addbot" class="bg-blue-300 text-black px-4 py-2 rounded">Add Bot Guesser</button> | ||||
|   {{ end }} | ||||
|   {{ if not .Room.RedTeam.Guessers }} | ||||
|   <button hx-get="/add-bot?team=red&role=guesser" hx-target="#addbot" class="bg-red-300 text-black px-4 py-2 rounded">Add Bot Guesser</button> | ||||
|   {{ end }} | ||||
| </div> | ||||
| {{end}} | ||||
|   | ||||
| @@ -56,6 +56,11 @@ | ||||
|     {{template "mimeclue"}} | ||||
|     {{end}} | ||||
|   </div> | ||||
|   <div> | ||||
|     {{if and (eq .State.Username .Room.CreatorName) (.Room.IsRunning)}} | ||||
|       <button hx-get="/renotify-bot" class="bg-amber-100 text-black px-4 py-2 rounded">Btn in case llm call failed</button> | ||||
|     {{end}} | ||||
|   </div> | ||||
|   <div hx-get="/actionhistory" hx-trigger="sse:backlog_{{.Room.ID}}"> | ||||
|   {{template "actionhistory" .Room.ActionHistory}} | ||||
|   </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder