generated from HoloTech/twitch-bot-template
Compare commits
8 Commits
master
...
2e60625e77
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e60625e77 | |||
| 68d678c74f | |||
| 3c3e857e28 | |||
| 1311574360 | |||
| 9e73708972 | |||
| 808ed74d15 | |||
| 1042ae044a | |||
| acaeb14b80 |
@@ -10,3 +10,6 @@
|
|||||||
[submodule "src/modules/profiles"]
|
[submodule "src/modules/profiles"]
|
||||||
path = src/modules/profiles
|
path = src/modules/profiles
|
||||||
url = https://git.thewisewolf.dev/HoloTech/profiles-plugin.git
|
url = https://git.thewisewolf.dev/HoloTech/profiles-plugin.git
|
||||||
|
[submodule "src/modules/exec"]
|
||||||
|
path = src/modules/exec
|
||||||
|
url = https://git.thewisewolf.dev/HoloTech/exec-plugin.git
|
||||||
|
|||||||
@@ -17,6 +17,18 @@ BEGIN
|
|||||||
END;
|
END;
|
||||||
$$ language 'plpgsql';
|
$$ language 'plpgsql';
|
||||||
|
|
||||||
|
CREATE OR REPLACE FUNCTION current_module_version(module_name TEXT)
|
||||||
|
RETURNS INTEGER
|
||||||
|
AS $$
|
||||||
|
SELECT
|
||||||
|
to_version
|
||||||
|
FROM version_history
|
||||||
|
WHERE
|
||||||
|
component = $1
|
||||||
|
ORDER BY _timestamp DESC
|
||||||
|
LIMIT 1;
|
||||||
|
$$ LANGUAGE SQL;
|
||||||
|
|
||||||
CREATE TABLE app_config(
|
CREATE TABLE app_config(
|
||||||
appname TEXT PRIMARY KEY,
|
appname TEXT PRIMARY KEY,
|
||||||
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||||
|
|||||||
@@ -4,9 +4,11 @@ if TYPE_CHECKING:
|
|||||||
from meta import Bot
|
from meta import Bot
|
||||||
|
|
||||||
|
|
||||||
async def twitch_setup(bot: 'Bot'):
|
async def twitch_setup(bot: "Bot"):
|
||||||
# Import and run setup methods from each module
|
# Import and run setup methods from each module
|
||||||
from . import profiles, tracker, subathon
|
from . import profiles, tracker, subathon, exec
|
||||||
|
|
||||||
await profiles.twitch_setup(bot)
|
await profiles.twitch_setup(bot)
|
||||||
await tracker.twitch_setup(bot)
|
await tracker.twitch_setup(bot)
|
||||||
await subathon.twitch_setup(bot)
|
await subathon.twitch_setup(bot)
|
||||||
|
await exec.twitch_setup(bot)
|
||||||
|
|||||||
Submodule
+1
Submodule src/modules/exec added at f0bdbaed3c
+1
-1
Submodule src/modules/profiles updated: 0363dc2bcd...c9b6ce8f60
+1
-1
Submodule src/modules/subathon updated: 32b84625df...11c77bcc89
+1
-1
Submodule src/modules/tracker updated: f853f01bf8...d7ef852ebb
Reference in New Issue
Block a user