Giter VIP home page Giter VIP logo

jimbo-bot's Introduction

@jtn7's Holopin board

jimbo-bot's People

Contributors

jtn7 avatar

Watchers

 avatar

jimbo-bot's Issues

Simplify ephemeral response to event buttons

Small Update

Ephemeral messages are a little long. Cut some of it down.

Lines 78 and 88 should be where the changes are made.

jimbo-bot/cmd/bot.go

Lines 71 to 94 in 99c08eb

func MessageComponentHandler(s *discordgo.Session, i *discordgo.InteractionCreate) {
switch i.MessageComponentData().CustomID {
case "going":
response := &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,
Data: &discordgo.InteractionResponseData{
Content: i.Member.User.Username + " marked as : **\"I'm going\"**\n\nSee you there :sunglasses:",
Flags: 1 << 6,
},
}
s.InteractionRespond(i.Interaction, response)
case "flaking":
response := &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,
Data: &discordgo.InteractionResponseData{
Content: i.Member.User.Username + " marked as: **\"I'm FLAKING\"**\n\nwhat the... :rage:",
Flags: 1 << 6,
},
}
s.InteractionRespond(i.Interaction, response)
}
}

Notify attendees of an event

Feature Description

Attendees of an event should get notified when an event occurs. Ping all attending users of an event on the day of the event.

Eventually this should be incorporated into an events channel where events and notifications for events are kept. Possibly they should be kept in two different channels?

Add a README

Describe the project, list what has been implemented and what has not, and provide a guide on how to run the bot.

Edit event message with attendees

Feature Description

Add a list of attendees to the event message that is displayed when a user executes /event create.

When a user clicks the I'm going or I'm FLAKING buttons the list should update accordingly.

The list of attendees should be located below the date.

image

The attendees list should be split in two: Going and FLAKING

Things that need figuring out

  • How to update the list when a user changes their mind (maybe sqlite)
  • How to update the event message

Using sqlite will also allow notifying attendees at the time of the event without having to reference messages #4

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.