 
 DogeTipDiscussions = "http://steamcommunity.com/groups/DogeTip/discussions"
 DogeTipGroupID = "103582791435182182"
+
 pendingInvites = []
+pendingPayments = []
 
 # Connect to the database
 await MongoClient.connect "mongodb://192.168.1.115:27017/dogebot", defer(err, db)

	
	bot.joinChat DogeTipGroupID
	bot.sendMessage DogeTipGroupID, "dogetippingbot is back online"

bot.on "chatMsg", (sourceID, message, type, chatterID) ->
	if message == "Friends"
		bot.sendMessage DogeTipGroupID, JSON.stringify(bot.friends)
bot.on "friendMsg", (chatterID, message, type) ->
	# Private messages
	return if message is ""

bot.on "friend", (steamID, Relationship) ->
	if pendingInvites.indexOf(steamID) isnt -1


# Connect to Steam
bot = new Steam.SteamClient()
secrets = require "./auth.coffee"
{credentials} = secrets
{moolah} = secrets

bot.logOn credentials
bot.on "loggedOn", ->
	console.log "Logged in as '#{credentials.accountName}'"
