GithubHelp home page GithubHelp logo

ellypaws / go-clippy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 624 KB

Clippy discordgo bot for tracking user points and functions using bingo

Home Page: https://discord.com/oauth2/authorize?client_id=1160477777498214451&permissions=0&scope=bot

Go 100.00%
bingo discordgo go

go-clippy's Introduction

Clippy-Go

This Discord bot is designed to assist users in retrieving and managing function details across different platforms, such as Excel and Google Sheets. With an integrated points system, it encourages community collaboration and problem-solving. It uses DiscordGo for the bot, and Bingo for the database

Setup

To run the bot, you need the Bot token from the Discord Developer Portal. Once you have the token, you can run the bot using the following command:

  • token (token): The bot access token.
    token YOUR_BOT_ACCESS_TOKEN
    
  • guild (guild): The Guild ID. If not provided, the bot registers commands globally.
    guild GUILD_ID
    
  • rmcmd (rmcmd): This flag determines whether to remove all commands after shutting down. This is particularly useful for cleanup. By default, this is set to false.
    rmcmd=true
    

Example:

go-clippy.exe token YOUR_BOT_ACCESS_TOKEN

The token can also be set by setting the BOT_TOKEN environment variable. You can also use the .env file in the working directory.

Platform Command
Powershell $env:token = "BOT_TOKEN"
Bash export token=BOT_TOKEN
Command Prompt set token=BOT_TOKEN

Running the bot

Once the bot is running, you can use the following commands to interact with it:

Key Action
Ctrl + C Quit the program
  1. TUI to be implemented

Slash Commands

The bot supports a variety of slash commands to ease the functionality:

1. /lookup

Fetches details of a function for a given platform.

Usage:

/lookup function:FUNCTION_NAME platform:PLATFORM_NAME

Example:

/lookup function:sum platform:Excel

2. /search

Similar to /lookup, but has an autocomplete feature. You can also search by description.

Usage:

/search function:FUNCTION_NAME description:DESCRIPTION platform:PLATFORM_NAME

Example:

/search function:sum platform:Excel
/search description:filter platform:Google Sheets

3. /solved

Marks a thread as finished and optionally awards points to a user for solving it.

Usage:

/solved @User #channel

Parameters:

  • @User (optional): Mention the user you wish to award points to.
  • #channel (optional): Mention the channel where the thread you wish to mark as finished is located. If the command is run inside a thread, the bot assumes it's the current thread.

Example:

/solved @JohnDoe #excel-help

Todo

  1. Actually run the bot
  2. Implement bubbletea TUI
  3. Leaderboard
  4. Points system

Go Gopher climbing a ladder.

Contribution


Feel free to contribute to the bot's development or suggest new features. Your feedback is always appreciated.

go-clippy's People

Contributors

ellypaws avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.