test
This commit is contained in:
parent
b441028e15
commit
8c00e4cb04
14
main.go
14
main.go
@ -20,11 +20,11 @@ type Client struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
bot *tb.Bot
|
bot *tb.Bot
|
||||||
clients map[uint32]*Client
|
clients map[uint32]*Client
|
||||||
paused bool = true
|
paused bool = true
|
||||||
forcePaused bool = true
|
forcePaused bool = true
|
||||||
forcePausedBy string
|
pausedBy string
|
||||||
|
|
||||||
githash string
|
githash string
|
||||||
buildstamp string
|
buildstamp string
|
||||||
@ -204,11 +204,11 @@ func main() {
|
|||||||
if sp.Message == "!unpause" {
|
if sp.Message == "!unpause" {
|
||||||
logInfoDebug("AdminPacketServerChat : Unpausing")
|
logInfoDebug("AdminPacketServerChat : Unpausing")
|
||||||
forcePaused = false
|
forcePaused = false
|
||||||
forcePausedBy = clients[sp.ClientID].Name
|
pausedBy = clients[sp.ClientID].Name
|
||||||
} else if sp.Message == "!pause" {
|
} else if sp.Message == "!pause" {
|
||||||
logInfoDebug("AdminPacketServerChat : Pausing")
|
logInfoDebug("AdminPacketServerChat : Pausing")
|
||||||
forcePaused = true
|
forcePaused = true
|
||||||
forcePausedBy = clients[sp.ClientID].Name
|
pausedBy = clients[sp.ClientID].Name
|
||||||
} else {
|
} else {
|
||||||
logInfoDebug("AdminPacketServerChat :\n- ActionID: %d\n- DestinationID: %d\n- ClientID: %d\n- Message: %s\n- Amount: %d", sp.ActionID, sp.DestinationID, sp.ClientID, sp.Message, sp.Amount)
|
logInfoDebug("AdminPacketServerChat :\n- ActionID: %d\n- DestinationID: %d\n- ClientID: %d\n- Message: %s\n- Amount: %d", sp.ActionID, sp.DestinationID, sp.ClientID, sp.Message, sp.Amount)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user