Codecast

Codecast

Share this post

Codecast
Codecast
Building a Golang Discord Bot- Part 1: Setup

Building a Golang Discord Bot- Part 1: Setup

Learn Go development through a real world project

Yash Prakash's avatar
Yash Prakash
Oct 05, 2022
∙ Paid

Share this post

Codecast
Codecast
Building a Golang Discord Bot- Part 1: Setup
Share
assorted-color lear hanging decor
Photo by Chris Lawton on Unsplash

Welcome to this new series on learning software development in Golang. Beginning from this article, we will be going into the path of learning the Go programming language while building a real world project that we can later deploy on a server as a useful service.

So without further delay, let’s get started on the project!

But before that…

Make sure to go through my Go utilities article to set up your development environment nicely! 👇🏻

Yash's Codecast
Golang Development Utilities You Should Know
Install a specific version of Go— if you do not have an existing one The documentation page for this step: https://go.dev/doc/install Go to your specific operating system and follow the steps. Installing a specific version of Go — if you do have an existing older version installed…
Read more
3 years ago · 1 like · Yash Prakash

Setting up our Project and Dependencies

The focus of this project is upon building a utility discord bot that can do certain small but useful things within our server. But we can discuss about what those useful things may comprise of later, first, let’s see how to set up our project and install some of the libraries we will be using.

Go to your Go development folder on your local machine and enter:

mkdir discord_bot
cd discord_bot

We now want to initialize a new Go project in our root project folder:

go init

This now builds us a new go.mod file in our project directory. You’ll see that it contains the go version and the simple module path on your local machine like so:

module yashprakash13/Go-Basics/discord_bot

go 1.19

Now, let’s install the required libraries.

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Yash Prakash
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share