コード例 #1
0
ファイル: Program.cs プロジェクト: whattheshark/Town-Crier
    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);
 }