From 8769c7625cafd14e6f304601cc99a195e833d38b Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 13 Aug 2022 17:16:23 +0200 Subject: Fix config table, add plugin events, implement onPreMessageEvent, add http error data field, migrations --- .../plugin_data_objects/ChannelCreateEventArgs.ts | 7 ------- .../plugin_data_objects/GuildCreateEventArgs.ts | 7 ------- .../plugin/plugin_data_objects/LoginEventArgs.ts | 7 ------- .../plugin/plugin_data_objects/MessageEventArgs.ts | 7 ------- .../plugin_data_objects/PluginLoadedEventArgs.ts | 3 --- .../plugin/plugin_data_objects/RegisterEventArgs.ts | 7 ------- .../plugin/plugin_data_objects/TypingEventArgs.ts | 7 ------- src/util/plugin/plugin_data_objects/_gen.sh | 21 --------------------- src/util/plugin/plugin_data_objects/_pdo | 7 ------- src/util/plugin/plugin_data_objects/_todo.txt | 1 - src/util/plugin/plugin_data_objects/index.ts | 7 ------- 11 files changed, 81 deletions(-) delete mode 100644 src/util/plugin/plugin_data_objects/ChannelCreateEventArgs.ts delete mode 100644 src/util/plugin/plugin_data_objects/GuildCreateEventArgs.ts delete mode 100644 src/util/plugin/plugin_data_objects/LoginEventArgs.ts delete mode 100644 src/util/plugin/plugin_data_objects/MessageEventArgs.ts delete mode 100644 src/util/plugin/plugin_data_objects/PluginLoadedEventArgs.ts delete mode 100644 src/util/plugin/plugin_data_objects/RegisterEventArgs.ts delete mode 100644 src/util/plugin/plugin_data_objects/TypingEventArgs.ts delete mode 100755 src/util/plugin/plugin_data_objects/_gen.sh delete mode 100644 src/util/plugin/plugin_data_objects/_pdo delete mode 100644 src/util/plugin/plugin_data_objects/_todo.txt delete mode 100644 src/util/plugin/plugin_data_objects/index.ts (limited to 'src/util/plugin/plugin_data_objects') diff --git a/src/util/plugin/plugin_data_objects/ChannelCreateEventArgs.ts b/src/util/plugin/plugin_data_objects/ChannelCreateEventArgs.ts deleted file mode 100644 index ce7dec87..00000000 --- a/src/util/plugin/plugin_data_objects/ChannelCreateEventArgs.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface PreChannelCreateEventArgs { - -} - -export interface OnChannelCreateEventArgs { - -} diff --git a/src/util/plugin/plugin_data_objects/GuildCreateEventArgs.ts b/src/util/plugin/plugin_data_objects/GuildCreateEventArgs.ts deleted file mode 100644 index e10e675a..00000000 --- a/src/util/plugin/plugin_data_objects/GuildCreateEventArgs.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface PreGuildCreateEventArgs { - -} - -export interface OnGuildCreateEventArgs { - -} diff --git a/src/util/plugin/plugin_data_objects/LoginEventArgs.ts b/src/util/plugin/plugin_data_objects/LoginEventArgs.ts deleted file mode 100644 index 391b852e..00000000 --- a/src/util/plugin/plugin_data_objects/LoginEventArgs.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface PreLoginEventArgs { - -} - -export interface OnLoginEventArgs { - -} diff --git a/src/util/plugin/plugin_data_objects/MessageEventArgs.ts b/src/util/plugin/plugin_data_objects/MessageEventArgs.ts deleted file mode 100644 index 0a3498c2..00000000 --- a/src/util/plugin/plugin_data_objects/MessageEventArgs.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface PreMessageEventArgs { - -} - -export interface OnMessageEventArgs { - -} diff --git a/src/util/plugin/plugin_data_objects/PluginLoadedEventArgs.ts b/src/util/plugin/plugin_data_objects/PluginLoadedEventArgs.ts deleted file mode 100644 index 58829f15..00000000 --- a/src/util/plugin/plugin_data_objects/PluginLoadedEventArgs.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface PluginLoadedEventArgs { - -} \ No newline at end of file diff --git a/src/util/plugin/plugin_data_objects/RegisterEventArgs.ts b/src/util/plugin/plugin_data_objects/RegisterEventArgs.ts deleted file mode 100644 index 7f7c0c76..00000000 --- a/src/util/plugin/plugin_data_objects/RegisterEventArgs.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface PreRegisterEventArgs { - -} - -export interface OnRegisterEventArgs { - -} diff --git a/src/util/plugin/plugin_data_objects/TypingEventArgs.ts b/src/util/plugin/plugin_data_objects/TypingEventArgs.ts deleted file mode 100644 index f6660692..00000000 --- a/src/util/plugin/plugin_data_objects/TypingEventArgs.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface PreTypingEventArgs { - -} - -export interface OnTypingEventArgs { - -} diff --git a/src/util/plugin/plugin_data_objects/_gen.sh b/src/util/plugin/plugin_data_objects/_gen.sh deleted file mode 100755 index 9fbd1749..00000000 --- a/src/util/plugin/plugin_data_objects/_gen.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -while read event -do - if [ ! -f "${event}EventArgs.ts" ] - then - echo Making event $event... - ( - echo "export interface Pre${event}EventArgs {" - echo ' ' - echo '}' - echo '' - echo "export interface On${event}EventArgs {" - echo ' ' - echo '}' - ) > ${event}EventArgs.ts - fi -done < _pdo - -echo '' - -node ../../../../scripts/gen_index.js .. --recursive \ No newline at end of file diff --git a/src/util/plugin/plugin_data_objects/_pdo b/src/util/plugin/plugin_data_objects/_pdo deleted file mode 100644 index fa207f77..00000000 --- a/src/util/plugin/plugin_data_objects/_pdo +++ /dev/null @@ -1,7 +0,0 @@ -Register -Message -Login -GuildCreate -ChannelCreate -Typing -StatusChange \ No newline at end of file diff --git a/src/util/plugin/plugin_data_objects/_todo.txt b/src/util/plugin/plugin_data_objects/_todo.txt deleted file mode 100644 index a6a78c7e..00000000 --- a/src/util/plugin/plugin_data_objects/_todo.txt +++ /dev/null @@ -1 +0,0 @@ -Voice events when we do voice. \ No newline at end of file diff --git a/src/util/plugin/plugin_data_objects/index.ts b/src/util/plugin/plugin_data_objects/index.ts deleted file mode 100644 index c75d43f9..00000000 --- a/src/util/plugin/plugin_data_objects/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./ChannelCreateEventArgs"; -export * from "./GuildCreateEventArgs"; -export * from "./LoginEventArgs"; -export * from "./MessageEventArgs"; -export * from "./PluginLoadedEventArgs"; -export * from "./RegisterEventArgs"; -export * from "./TypingEventArgs"; -- cgit 1.5.1