Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal class Program
- {
- private static bool _running = true;
- private static async Task Main(string[] args)
- {
- var client = new Instance();
- client.OnWorldDisconnect += delegate {
- _running = false;
- };
- client.OnAvatarEnter += delegate(Instance sender, AvatarEnterEventArgsT<Avatar> t)
- {
- Console.WriteLine($"{t.Avatar.Name} Entered.");
- };
- await client.ConnectAsync();
- await client.LoginAsync("username", "password", "botname");
- await client.EnterAsync("worldname");
- await client.LoginAndEnterAsync();
- while (_running)
- {
- /* Wait */
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement