PartsBot 2, written (badly) in Go using discordgo.

PartsBot

A bot that fetches information from PCPartPicker directly from Discord. It is currently not being hosted officially. It uses the discordgo API wrapper.

Features

  • Fetches pricing and specs via commands
  • Auto formats PCPartPicker URLs
  • Utilizes Discord API components
  • Configurable using settings command
  • Can be self hosted using config file

Self hosting

To self host this bot, you will need to have Go 1.17 installed to compile the source code, access to a MongoDB instance and a config.toml file in the same directory as the main.go file structured as follows:

[bot]
token = "some token"
prefix = "."

[mongo]
uri = "mongodb+srv://someuser:[email protected]"
db_name = "some database name"

Monetization

I have also found some ways to monetize the bot via custom affiliate links, to enable this, you will need to add the following to your config.toml (example provided is Amazon):

[[pcpartpicker.affiliates]]
name = "amazon"
full_regexp = "https:\\/\\/(www.)?amazon.(com|co.[a-z]{2})\\/dp\\/[a-zA-Z0-9]{6,12}"
extract_id_regexp = "(?<=\\/dp\\/)[a-zA-Z0-9]{6,12}"
code = "tag=some-affiliate-code"

Plans for the future

  • Implement proxy rotation in the future to prevent being blocked by PCPartPicker
  • Create some CI/CD routines in order to compile the source code automatically so that you don't need to install Go to run the bot
Owner
QuaKe
Python, JavaScript, TypeScript and Go user. Web and Discord bot developer.
QuaKe
Similar Resources

Creating a twiter bot using GO

go-twiter-bot Creating a twiter bot using GO Libs: github.com/dghubble/go-twitter github.com/dghubble/oauth1 Configuração: Exportar variáveis de ambie

Mar 29, 2022

A Discord clone using React and Go

Valkyrie A Discord clone using React and Go. Live Demo Notes: File Upload is dis

Dec 19, 2021

UcodeQrTelebot ver2 - Easy way to get QR and U-code using Utopia API in telegram bot

UcodeQrTelebot ver2 - Easy way to get QR and U-code using Utopia API in telegram bot

UcodeQrTelebot Easy way to get QR and U-code using Utopia API in telegram bot Us

Dec 30, 2021

Feline-bot - Feline Bot for Discord using Golang

Feline Bot for Discord Development This bot is implemented using Golang. Feature

Feb 10, 2022

IRC, Slack, Telegram and RocketChat bot written in go

IRC, Slack, Telegram and RocketChat bot written in go

go-bot IRC, Slack & Telegram bot written in Go using go-ircevent for IRC connectivity, nlopes/slack for Slack and Syfaro/telegram-bot-api for Telegram

Dec 20, 2022

Simple yet customizable bot framework written in Go.

Simple yet customizable bot framework written in Go.

Introduction Sarah is a general-purpose bot framework named after the author's firstborn daughter. This comes with a unique feature called "stateful c

Dec 12, 2022

Slack bot core/framework written in Go with support for reactions to message updates/deletes

Slack bot core/framework written in Go with support for reactions to message updates/deletes

Overview Requirements Features Demo The Name Concepts Create Your Own Slackscot Assembling the Parts and Bringing Your slackscot to Life Configuration

Oct 28, 2022

The modern cryptocurrency trading bot written in Go.

bbgo A trading bot framework written in Go. The name bbgo comes from the BB8 bot in the Star Wars movie. aka Buy BitCoin Go! Current Status Features E

Jan 2, 2023

A general-purpose bot library inspired by Hubot but written in Go. :robot:

Joe Bot 🤖 A general-purpose bot library inspired by Hubot but written in Go. Joe is a library used to write chat bots in the Go programming language.

Dec 24, 2022
An easy-to-use discord bot template written in golang using discordgo

Discord Bot An easy-to-use discord bot template written in golang using discordgo. This template was written for learning golang. It will be updated a

Oct 30, 2021
An extension for discordgo to create a Discord bot quickly using the Builder pattern.

botbuilder An extension for discordgo to create a Discord bot quickly using the Builder pattern. Example usage: package main import ( "log" "os"

Oct 12, 2022
DiscordGo: a Go package that provides low level bindings to the Discord chat client API
DiscordGo: a Go package that provides low level bindings to the Discord chat client API

DiscordGo DiscordGo is a Go package that provides low level bindings to the Discord chat client API. DiscordGo has nearly complete support for all of

Dec 14, 2021
Discord token grabber written in go please read the liability disclaimer before using it
Discord token grabber written in go please read the liability disclaimer before using it

Discord Token Grabber Written in Go ! Liability Disclaimer ⚠ The use of this sof

Jan 1, 2023
Telegram bot written in Golang using gotgbot library

go_tgbot Telegram bot written in Golang using gotgbot library. How to run go get -u github.com/itsLuuke/go_tgbot rename sample.env to .env and fill in

Nov 4, 2022
Cryptocurrency implemented using the Go programming language

Nomadcoin Making a Cryptocurrency using the Go programming language. Features Mining Transactions Database Backend Wallets REST API HTML Explorer P2P

Dec 7, 2022
An example bot using GoTGCalls.

GoMusicBot An example bot using GoTGCalls. Configuring Copy example.env to .env and add your credentials. STRING_SESSION: A GramJS/Telethon string ses

Aug 4, 2021
send current weather updates from openweathermap api to your slack profile status using github action
send current weather updates from openweathermap api to your slack profile status using github action

go-slack-weather Send current weather updates from OpenWeatherMap API to your Slack profile status using GitHub Action Contents Setup Change Update Pe

Oct 31, 2022
Telegram bot for distorting images and stickers using CAS
Telegram bot for distorting images and stickers using CAS

Distortioner Telegram bot for distorting pictures, stickers, voice messages and GIFs using Content Aware Scale. Currently resides here: @distortionerb

Dec 21, 2022
Golang bot that connects to slack using Socketclient to read and write messages.
Golang bot that connects to slack using Socketclient to read and write messages.

?? (not)simple go project ?? Golang bot that connects to slack using Socketclient to read and write messages. ?? Use ?? @SquidBot : Mentions your name

Aug 23, 2022