Remove stdinput to stop
This commit is contained in:
parent
0402f3d452
commit
0a610cf8c8
6
main.go
6
main.go
|
|
@ -39,6 +39,8 @@ func init() {
|
|||
steam.Username = mapConfig["steam_login"]
|
||||
steam.Password = mapConfig["steam_password"]
|
||||
steam.AuthCode = mapConfig["steam_auth_code"]
|
||||
|
||||
xmpp.Version = "0.1.0"
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
@ -52,9 +54,9 @@ func main() {
|
|||
go gatewaySteamXmppPresence()
|
||||
|
||||
go steam.Run()
|
||||
go xmpp.Run()
|
||||
xmpp.Run()
|
||||
|
||||
inputStop()
|
||||
// inputStop()
|
||||
|
||||
steam.Disconnect()
|
||||
xmpp.Disconnect()
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ var (
|
|||
ChanAction = make(chan string)
|
||||
|
||||
CurrentStatus = Status_offline
|
||||
|
||||
Version = ""
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -102,7 +104,7 @@ func Disconnect() {
|
|||
}
|
||||
|
||||
func SendPresence(status, tpye string) {
|
||||
comp.Out <- xmpp.Presence{To: PreferedJID, From: jid.Domain, Show: status, Type: tpye}
|
||||
comp.Out <- xmpp.Presence{To: PreferedJID, From: jid.Domain, Show: status, Type: tpye, Status: "go-xmpp4steam v"+Version}
|
||||
}
|
||||
|
||||
func SendPresenceFrom(status, tpye, from string) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# XMPP informations
|
||||
xmpp_server_address=192.168.1.2
|
||||
xmpp_server_port=5347
|
||||
xmpp_hostname=steam.kingpenguin.tk
|
||||
xmpp_secret=steam_gateway_password
|
||||
xmpp_hostname=xmppsteam.kingpenguin.tk
|
||||
xmpp_secret=xmpp4steam_password
|
||||
xmpp_authorized_jid=chteufleur@kingpenguin.tk
|
||||
|
||||
# Steam informations
|
||||
|
|
|
|||
Loading…
Reference in New Issue