mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 04:45:02 +00:00
Rename Events and files to prevent ambiguity and order availablePlugins
This commit is contained in:
parent
f324dfc227
commit
0bc7dc17b7
13 changed files with 59 additions and 65 deletions
|
@ -2,7 +2,7 @@ import { zeppelinPlugin } from "../ZeppelinPluginBlueprint";
|
|||
import { PluginOptions } from "knub";
|
||||
import { WelcomeMessagePluginType, ConfigSchema } from "./types";
|
||||
import { GuildLogs } from "src/data/GuildLogs";
|
||||
import { GuildMemberAddEvt } from "./events/GuildMemberAddEvt";
|
||||
import { SendWelcomeMessageEvt } from "./events/SendWelcomeMessageEvt";
|
||||
|
||||
const defaultOptions: PluginOptions<WelcomeMessagePluginType> = {
|
||||
config: {
|
||||
|
@ -18,7 +18,7 @@ export const WelcomeMessagePlugin = zeppelinPlugin<WelcomeMessagePluginType>()("
|
|||
|
||||
// prettier-ignore
|
||||
events: [
|
||||
GuildMemberAddEvt,
|
||||
SendWelcomeMessageEvt,
|
||||
],
|
||||
|
||||
onLoad(pluginData) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { stripObjectToScalars, createChunkedMessage } from "src/utils";
|
|||
import { LogType } from "src/data/LogType";
|
||||
import { TextChannel } from "eris";
|
||||
|
||||
export const GuildMemberAddEvt = welcomeEvent({
|
||||
export const SendWelcomeMessageEvt = welcomeEvent({
|
||||
event: "guildMemberAdd",
|
||||
|
||||
async listener(meta) {
|
Loading…
Add table
Add a link
Reference in a new issue