Skip to content

pkini2002/DiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot

A personalized discord bot developed using Discord Developer Profile and Golang that can be seamlessly integrated into any discord server that you own and acts like a personal chatbot to know more about Hewlett Packard Enterprise (HPE)

Techstacks and Dependencies Used:

Steps to create your own Discord Bot

  • Navigate to Discord Developer Portal
  • Click on the New Application button and provide any name to your application (You can't keep a name that has the word Discord in it)

Note

The application is not the Discord Bot

  • On the left menu, select Bot
  • Uncheck the public bot check box
  • Click the Reset Token button, to generate a Token ID.
  • Go to URL Generator under OAuth2 on the left, and provide the scope as Bot, and permissions necessary as per the bot you want to develop. You can set permissions like Administrator privileges, send messages, send messages in threads, React to messages, and almost all other activities that you can perform on discord
  • Copy the URL generated at the bottom, after the permissions are set.
  • Go to that URL and add the bot to any of your servers, after all these steps you should have a Token ID and Bot(offline) in your server.

Important

After you have your file structure and the code ready do the following: Initialize the module

go mod init example.com/hello_world_bot

Add the discord Go dependency

go get github.com/bwmarrin/discordgo

Running the Project

This command will make the Bot online and can respond to your requests

go run main.go

Screenshots

Screenshot 2023-12-30 161829 Screenshot 2023-12-30 161903

Releases

No releases published

Packages

No packages published

Languages