Giter VIP home page Giter VIP logo

hammertimebot's Introduction

HammerTimeBot Workflow status

Discord bot written in Node.js (using discord.js) for HammerTime

$ sudo npm install -g pm2
$ npm install
$ cp .env.example .env
$ nano .env # Fill in the neccessary environment variables
$ npm build
$ pm2 start pm2.json

Translation

New language contributions are welcome! They are handled through Crowdin. If you don't see your language listed, that means it's likely not supported by the Discord client itself, meaning translations would be pointless. If a language is available in Discord's settings but is not listed on Crowdin, or you want to help with the translations of an existing language, please join our Discord server and ask for your language to be added to the project in the #translator-signup channel. You will be given the Translator role and granted access to a language-specific channel for further discussion. This is necessary so that when new translations are needed for any potential new bot features, I have an easy way to reach everyone at once.

English and Hungarian translations have been included, so no translators will be needed for these two languages.

Credits

hammertimebot's People

Contributors

djdavid98 avatar jessuhh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hammertimebot's Issues

Feature Request: Ability to use command inside a chat message

It'd be useful to be able to include the autogenerated timestamps inline with a discord chat message. This would require a way to limit the output to only a specific time output (e.g. 8/8/2022 or 4:00 PM).

I'd imagine the syntax being something like:

Here's my discord message where I say I'd like to schedule our meeting for !timestamp-1600.

Would then output something like:

Here's my discord message where I say I'd like to schedule our meeting for [1600].

Where [1600] would be localized to everyone's individual timezone.

Incorrect ephemeral helptext

The current message for the ephemeral parameter to the at command states that the parameter defaults to false, but this no longer seems to be the case.

https://github.com/DJDavid98/HammerTimeBot/blob/main/src/locales/en-US/translation.json#L209

For example, running the command /at hour:7 minute:0 timezone:CST6CDT with the bot produces an ephemeral message.

image

image

Specifically supplying False or True to the argument results in the correct behavior.

I personally prefer ephemeral to be on by default (the current behavior), but the helptext does not currently match this.

Day selection is bugged

/timestamp at year: 1 month: 1 day: 1 hour: 1 minute: 1 second: 1 timezone: CET

results in
Monday, 22 January 0001 01:17

Default Timezone to user's current timezone

The need to specify a timezone when using the Hammertime bot kind of defeats the purpose of having the bot in a channel. Ideally, the bot would know what timezone a user is in when they call the /timestamp command and the timezone options should default to the user's timezone.

This matches what I imagine is the primary use case of the bot, which is to give your local time so that everyone on the channel sees it in their own local time. The use case of wanting to specify a time in a different timezone from your local timezone is most likely an edge case.

EDIT: This would then also match the behavior of the website, which defaults to the user's system timezone.

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.