GoBot

command module
v0.0.0-...-f430a6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

GoBot

A Go-based bot that interacts with the Spotify API and Discord.

Table of Contents

Introduction

GoBot is a Go-based bot that interacts with the Spotify API and Discord. It allows users to authenticate with Spotify and retrieve their top tracks.

Features

  • Authenticates with Spotify using OAuth2
  • Retrieves top tracks from Spotify
  • Interacts with Discord using the Discord API

Requirements

  • Go 1.22.2 or later
  • Spotify API credentials (client ID and client secret)
  • Discord API credentials (bot token)

Installation

  1. Clone the repository: git clone https://github.com/CesarHPMP/GoBot.git
  2. Install dependencies: go mod tidy && go mod download
  3. Build the project: Make a build dirctory and run go build ../

Usage

  1. Set environment variables for Spotify API credentials: export SPOTIFY_CLIENT_ID=your_client_id and export SPOTIFY_CLIENT_SECRET=your_client_secret
  2. Set environment variable for Discord API credentials: export DISCORD_BOT_TOKEN=your_bot_token
  3. Run the project by running the executable generated in the build directory.

API Documentation

API documentation is available at https://pkg.go.dev/github.com/zmb3/spotify and github.com/bwmarrin/discordgo

Contributing

Contributions are welcome! Please submit a pull request with your changes.

License

This project is licensed under the MIT License. See LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL