Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create timestamp #5

Closed
7 tasks done
sulphite opened this issue Apr 11, 2024 · 1 comment · Fixed by #11
Closed
7 tasks done

create timestamp #5

sulphite opened this issue Apr 11, 2024 · 1 comment · Fixed by #11
Assignees

Comments

@sulphite
Copy link
Collaborator

sulphite commented Apr 11, 2024

  • decide if this should be a slash command or something else like the bot reading everyone's messages
  • install day.js

IF SLASH COMMAND:

  • register a command name and description. Something like /time, takes one argument, the user can write a time in natural language (e.g. "tomorrow at 6pm") and bot will convert it to a timestamp
  • find out if we can get user's time zone from their command message
  • convert the relative time into an absolute time
  • convert that into formatted timestamp
  • post this in the channel
  • MAYBE: bot says "i'm going to create your event <EVENT TITLE> at <TIMESTAMP>. Is that ok?" with yes/no buttons. That's a new ticket though.
  • BONUS: add an extra command where users can configure how the timestamp is formatted (long date with day of week, just numbers, etc)

OTHERWISE

honestly i don't know if an alternative is feasible. bot would have to read messages until it notices use of a date. then it would have to work out if that was just irrelevant chat, or people actually trying to organise something. Maybe through call to chatgpt. but this could end up being way too many calls

@RGHANILOO
Copy link
Contributor

I believe it would be most effective to initiate the process with a /command` as you suggested for the following reasons, especially when considering integration with Discord and OpenAI:

  • When the user enters the slash command, we can prompt them for input
  • User will input a specific time in <natural language>
  • User will then be asked to provide a title and brief description
  • ChatGPT API will generate content based on the user's input
  • User will be asked to confirm, and Discord will finalize the card
  • Additionally, it would be beneficial to incorporate a reminder feature that alerts users 15-30 minutes before the scheduled event
  • We can incorporate multiple slash commands to retrieve different types of information

I agree that having ChatGPT continuously active may incur high costs and present programming challenges in determining when to trigger a response or activity.

@sulphite sulphite self-assigned this Apr 18, 2024
@sulphite sulphite mentioned this issue Apr 18, 2024
2 tasks
@sulphite sulphite linked a pull request Apr 18, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants