command
module
Version:
v0.0.0-...-f430a6b
Opens a new window with list of versions in this module.
Published: Oct 7, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
- Clone the repository:
git clone https://github.com/CesarHPMP/GoBot.git
- Install dependencies:
go mod tidy && go mod download
- Build the project: Make a build dirctory and run
go build ../
Usage
- Set environment variables for Spotify API credentials:
export SPOTIFY_CLIENT_ID=your_client_id and export SPOTIFY_CLIENT_SECRET=your_client_secret
- Set environment variable for Discord API credentials:
export DISCORD_BOT_TOKEN=your_bot_token
- 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
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.