mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-11 15:19:53 +00:00
Restructure
This commit is contained in:
15
Bot/Helpers/ClientReadyHandler.cs
Normal file
15
Bot/Helpers/ClientReadyHandler.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Threading.Tasks;
|
||||
using Discord.WebSocket;
|
||||
using Lunaris2.SlashCommand;
|
||||
|
||||
namespace Lunaris2.Helpers
|
||||
{
|
||||
public static class ClientReadyHandler
|
||||
{
|
||||
public static Task Client_Ready(this DiscordSocketClient client)
|
||||
{
|
||||
client.RegisterCommands();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Bot/Helpers/CommandServiceSetup.cs
Normal file
12
Bot/Helpers/CommandServiceSetup.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Discord.Commands;
|
||||
|
||||
namespace Lunaris2.Helpers
|
||||
{
|
||||
public static class CommandServiceSetup
|
||||
{
|
||||
public static CommandService Setup()
|
||||
{
|
||||
return new CommandService();
|
||||
}
|
||||
}
|
||||
}
|
||||
17
Bot/Helpers/DiscordSocketClientSetup.cs
Normal file
17
Bot/Helpers/DiscordSocketClientSetup.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Discord;
|
||||
using Discord.WebSocket;
|
||||
|
||||
namespace Lunaris2.Helpers
|
||||
{
|
||||
public static class DiscordSocketClientSetup
|
||||
{
|
||||
public static DiscordSocketClient Setup()
|
||||
{
|
||||
var config = new DiscordSocketConfig
|
||||
{
|
||||
GatewayIntents = GatewayIntents.All
|
||||
};
|
||||
return new DiscordSocketClient(config);
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Bot/Helpers/LogHandler.cs
Normal file
13
Bot/Helpers/LogHandler.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Discord;
|
||||
|
||||
namespace Lunaris2.Helpers
|
||||
{
|
||||
public static class LogHandler
|
||||
{
|
||||
public static Task Log(LogMessage arg)
|
||||
{
|
||||
Console.WriteLine(arg);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user