示例#1
0
    private async Task MainAsync()
    {
        await ApiAccess.EnsureLoggedIn();

        commandsProcessor = new CommandsProcessor(client);
        await commandsProcessor.Initialize();

        NewcomerHandler.Initialize(client);

        client.Ready += ClientReadyAsync;

        client.Disconnected += Disconnected;

        await EnableRoleManager();

        await client.LoginAsync(TokenType.Bot, token);

        await client.StartAsync();

        await client.SetGameAsync("A Chatty Township Tale");

        AccountModule.EnsureLoaded();

        await Task.Delay(-1);
    }
示例#2
0
 public override void OnReset()
 {
     _moveProcessor.Initialize(transform);
     _weaponProcessor.Initialize(transform);
 }