Codecast

Codecast

Share this post

Codecast
Codecast
Building a Golang Discord Bot- Part 2: Sticky Message Bot

Building a Golang Discord Bot- Part 2: Sticky Message Bot

Learn Golang with a real-world project

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

Share this post

Codecast
Codecast
Building a Golang Discord Bot- Part 2: Sticky Message Bot
Share
timelapse photography of vehicle during nighttime
Photo by Marcus Dall Col on Unsplash

In the previous part of this series, we discussed the following:

  • Setting up Golang on your machine,

  • Setting up your project

  • Installing required libraries (including Discord Bot wrapper DiscordGo)

  • Setting up our new bot session, and finally

  • Reading and respond to simple messages through our bot

If you haven’t yet read it, then do so from here:

Yash's Codecast
Building a Golang Discord Bot- Part 1: Setup
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…
Read more
3 years ago · Yash Prakash

Here in this tutorial, we will learn and implement the following concepts:

  • How to send a message to a particular channel, and check if a message was sent in a particular channel

  • Retrieve and save messages in a text file through the os library and handle errors appropriately

  • Send and delete specific messages upon specific events, and finally,

  • Combine all of the above features to build a Sticky bot for a channel in our server

Hyped enough? Let’s get started! :)

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