1
0
Fork 0

Remove stdinput to stop

This commit is contained in:
Chteufleur 2015-10-19 21:28:23 +02:00
parent 0402f3d452
commit 0a610cf8c8
3 changed files with 9 additions and 5 deletions

View File

@ -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()

View File

@ -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) {

View File

@ -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