(This is my first discord bot experience, please open an issue for bugs.)
git clone https://github.com/selimaytac/discord-community-helper-bot.git
In order to use the bot, you need to activate the lavalink server. You can download lavalink from here.
Name | Version |
---|---|
DSharpPlus | 4.1.0 |
DSharpPlus.CommandsNext | 4.1.0 |
DSharpPlus.Lavalink | 4.1.0 |
- Enter your id and token in your Discord developer panel here.
public static ulong ApplicationId = 0;
public static string Token = "";
- You can edit the command icon.
public static CommandsNextExtension GetCommandsInstance()
{
if (Commands == null)
Commands = GetBotInstance().UseCommandsNext(new CommandsNextConfiguration()
{
StringPrefixes = new[] { "<" }
});
return Commands;
}
- Edit your Lavalink server information.
public static ConnectionEndpoint GetConnectionEndpoint()
{
if (Endpoint.Hostname == null)
Endpoint = new ConnectionEndpoint
{
Hostname = "127.0.0.1",
Port = 2333
};
return Endpoint;
}
public static LavalinkConfiguration GetLavalinkConfiguration()
{
if(LavalinkConfig == null)
LavalinkConfig = new LavalinkConfiguration
{
Password = "youshallnotpass",
RestEndpoint = GetConnectionEndpoint(),
SocketEndpoint = GetConnectionEndpoint()
};
return LavalinkConfig;
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.