Ajout command handler et premier module (ping)
This commit is contained in:
14
Sean/Modules/PingModule.cs
Normal file
14
Sean/Modules/PingModule.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using Discord.Commands;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sean.Modules
|
||||
{
|
||||
public class PingModule : ModuleBase<SocketCommandContext>
|
||||
{
|
||||
#region Methods
|
||||
[Command("ping")]
|
||||
[Summary("Ping pong !")]
|
||||
public Task PongAsync() => ReplyAsync("Pong !");
|
||||
#endregion Methods
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user