mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
!timezone: add fuzzy matching for timezone name; add reset
This commit is contained in:
parent
4ae8cf85a3
commit
753ceda5ec
6 changed files with 90 additions and 7 deletions
|
@ -12,6 +12,7 @@ import { getGuildTz } from "./functions/getGuildTz";
|
|||
import { getMemberTz } from "./functions/getMemberTz";
|
||||
import { getDateFormat } from "./functions/getDateFormat";
|
||||
import { inMemberTz } from "./functions/inMemberTz";
|
||||
import { ResetTimezoneCmd } from "./commands/ResetTimezoneCmd";
|
||||
|
||||
const defaultOptions: PluginOptions<TimeAndDatePluginType> = {
|
||||
config: {
|
||||
|
@ -34,7 +35,12 @@ export const TimeAndDatePlugin = zeppelinPlugin<TimeAndDatePluginType>()("time_a
|
|||
configSchema: ConfigSchema,
|
||||
defaultOptions,
|
||||
|
||||
commands: [SetTimezoneCmd, ViewTimezoneCmd],
|
||||
// prettier-ignore
|
||||
commands: [
|
||||
ResetTimezoneCmd,
|
||||
SetTimezoneCmd,
|
||||
ViewTimezoneCmd,
|
||||
],
|
||||
|
||||
public: {
|
||||
getGuildTz: mapToPublicFn(getGuildTz),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue