Skip to content

selimaytac/discord-community-helper-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Community Helper Bot

(This is my first discord bot experience, please open an issue for bugs.)

.Net Version: .NET CORE 3.1

Installation

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.

Packages & Dependencies

Name Version
DSharpPlus 4.1.0
DSharpPlus.CommandsNext 4.1.0
DSharpPlus.Lavalink 4.1.0

Usage

  1. Enter your id and token in your Discord developer panel here.
        public static ulong ApplicationId = 0;
        public static string Token = "";
  1. You can edit the command icon.
public static CommandsNextExtension GetCommandsInstance()
        {
            if (Commands == null)
                Commands = GetBotInstance().UseCommandsNext(new CommandsNextConfiguration()
                {
                    StringPrefixes = new[] { "<" }
                });
            return Commands;
        }
  1. 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;
        }

Congratulations, you can now use the bot.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages