Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If DatabaseName = "BNETDocs" And BN_GotUserList Then
- Dim FixName, Gateway
- FixName = Left(UserObj.GetFullName(), Instr(UserObj.GetFullName(), "#")-1)
- Select Case True
- Case (Match(UserObj.BotServerIP , "199.108.55.*" , False)): Gateway = "USEast"
- Case (Match(UserObj.BotServerIP , "12.129.236.*" , False)): Gateway = "USWest"
- Case (Match(UserObj.BotServerIP , "5.42.181.*" , False)): Gateway = "Europe"
- Case (Match(UserObj.BotServerIP , "121.254.164.*" , False)): Gateway = "Asia"
- Case Else: Gateway = UserObj.BotServerIP
- End Select
- If Not BN_Users.Exists(BotID) Then
- If UserOjb.IsOnBNCS() Then
- ExecuteDiscordHook StringFormat("{0} joined the BotNet and is in channel {1} on {2}.", FixName, UserObj.BotChannel, Gateway)
- ELse
- ExecuteDiscordHook StringFormat("{0} joined the BotNet but is not logged onto Battle.net.", FixName)
- End if
- Else
- ExecuteDiscordHook StringFormat("{0} joined {1} on {2}.", FixName, UserObj.BotChannel, Gateway)
- End If
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement