From 268c5adb3c393982b1c337b72d46cb8d1cc84021 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 25 May 2019 21:40:06 +0100 Subject: [PATCH] Add `depends-on` hashflags to relevant modules --- modules/8ball.py | 2 ++ modules/accept_invite.py | 2 ++ modules/admin.py | 3 +++ modules/auto_mode.py | 5 +++++ modules/badges.py | 2 ++ modules/badwords.py | 3 +++ modules/birthday.py | 3 +++ modules/bitcoin.py | 2 ++ modules/books.py | 2 ++ modules/bot_channel.py | 2 ++ modules/channel_access.py | 3 +++ modules/channel_log/__init__.py | 3 +++ modules/channel_op.py | 5 +++++ modules/check_mode.py | 2 ++ modules/check_urls.py | 2 ++ modules/coins.py | 3 +++ modules/commands/__init__.py | 3 +++ modules/config.py | 4 ++++ modules/ctcp.py | 2 ++ modules/cve.py | 2 ++ modules/define.py | 1 + modules/dice.py | 2 ++ modules/duckduckgo.py | 2 ++ modules/ducks.py | 3 +++ modules/echo.py | 2 ++ modules/eval_lua.py | 2 ++ modules/eval_python.py | 2 ++ modules/eval_rust.py | 2 ++ modules/factoids.py | 2 ++ modules/github/__init__.py | 7 +++++++ modules/google.py | 2 ++ modules/greeting.py | 2 ++ modules/hash.py | 2 ++ modules/ids.py | 2 ++ modules/imdb.py | 1 + modules/imgur.py | 2 ++ modules/in.py | 1 + modules/ip_addresses.py | 2 ++ modules/karma.py | 4 ++++ modules/lastfm.py | 2 ++ modules/location.py | 2 ++ modules/modules.py | 3 +++ modules/nickserv.py | 2 ++ modules/nr.py | 1 + modules/perform.py | 3 +++ modules/permissions/__init__.py | 3 +++ modules/pong.py | 2 ++ modules/print_activity.py | 3 +++ modules/pronouns.py | 3 +++ modules/quotes.py | 2 ++ modules/random_number.py | 2 ++ modules/rest_api.py | 3 +++ modules/rot13.py | 2 ++ modules/sasl/__init__.py | 2 ++ modules/scripts/__init__.py | 1 + modules/sed.py | 3 +++ modules/seen.py | 2 ++ modules/shakespeare.py | 1 + modules/shorturl.py | 1 + modules/silence.py | 3 +++ modules/soundcloud.py | 1 + modules/spotify.py | 1 + modules/stats.py | 2 ++ modules/strax.py | 2 ++ modules/strip_color.py | 2 ++ modules/tfl.py | 2 ++ modules/thesaurus.py | 1 + modules/timer.py | 2 ++ modules/title.py | 3 +++ modules/to.py | 2 ++ modules/todo.py | 2 ++ modules/trakt.py | 2 ++ modules/translate.py | 2 ++ modules/tweets.py | 3 +++ modules/upc.py | 2 ++ modules/urbandictionary.py | 2 ++ modules/user_time.py | 3 +++ modules/weather.py | 2 ++ modules/wikipedia.py | 2 ++ modules/wolframalpha.py | 2 ++ modules/words.py | 4 ++++ modules/youtube.py | 2 ++ 82 files changed, 190 insertions(+) diff --git a/modules/8ball.py b/modules/8ball.py index 92603678..864c40f2 100644 --- a/modules/8ball.py +++ b/modules/8ball.py @@ -1,3 +1,5 @@ +#--depends-on commands + import random from src import ModuleManager, utils diff --git a/modules/accept_invite.py b/modules/accept_invite.py index c9bdb26f..61afb4e6 100644 --- a/modules/accept_invite.py +++ b/modules/accept_invite.py @@ -1,3 +1,5 @@ +#--depends-on config + from src import ModuleManager, utils @utils.export("serverset", {"setting": "accept-invites", diff --git a/modules/admin.py b/modules/admin.py index 5e262be1..37d61384 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on permissions + from src import ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/auto_mode.py b/modules/auto_mode.py index fd01f787..db503133 100644 --- a/modules/auto_mode.py +++ b/modules/auto_mode.py @@ -1,3 +1,8 @@ +#--depends-on channel_access +#--depends-on commands +#--depends-on config +#--depends-on permissions + from src import ModuleManager, utils @utils.export("channelset", {"setting": "automode", diff --git a/modules/badges.py b/modules/badges.py index 24b32395..502401cf 100644 --- a/modules/badges.py +++ b/modules/badges.py @@ -1,3 +1,5 @@ +#--depends-on commands + import datetime, re from src import ModuleManager, utils diff --git a/modules/badwords.py b/modules/badwords.py index a3eca5e4..d23a4137 100644 --- a/modules/badwords.py +++ b/modules/badwords.py @@ -1,3 +1,6 @@ +#--depends-on check_mode +#--depends-on commands + import time from src import ModuleManager, utils diff --git a/modules/birthday.py b/modules/birthday.py index a0741fc1..173ccaf3 100644 --- a/modules/birthday.py +++ b/modules/birthday.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on config + import datetime from src import ModuleManager, utils diff --git a/modules/bitcoin.py b/modules/bitcoin.py index 2d409a3f..4eb4c8d0 100644 --- a/modules/bitcoin.py +++ b/modules/bitcoin.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/books.py b/modules/books.py index aa059b27..18ced2ca 100644 --- a/modules/books.py +++ b/modules/books.py @@ -1,3 +1,5 @@ +#--depends-on commands + import json, re from src import ModuleManager, utils diff --git a/modules/bot_channel.py b/modules/bot_channel.py index 4daeb645..d7c7e8b2 100644 --- a/modules/bot_channel.py +++ b/modules/bot_channel.py @@ -1,3 +1,5 @@ +#--depends-on config + from src import ModuleManager, utils @utils.export("serverset", {"setting": "bot-channel", diff --git a/modules/channel_access.py b/modules/channel_access.py index f90d067e..73f3822e 100644 --- a/modules/channel_access.py +++ b/modules/channel_access.py @@ -1,3 +1,6 @@ +#--depends-on check_mode +#--depends-on commands + from src import ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/channel_log/__init__.py b/modules/channel_log/__init__.py index 546277d7..583957a0 100644 --- a/modules/channel_log/__init__.py +++ b/modules/channel_log/__init__.py @@ -1,3 +1,6 @@ +#--depends-on config +#--depends-on format_activity + import datetime, os.path from src import ModuleManager, utils diff --git a/modules/channel_op.py b/modules/channel_op.py index c3d8c022..f156d340 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -1,3 +1,8 @@ +#--depends-on channel_access +#--depends-on check_mode +#--depends-on commands +#--depends-on config + from src import ModuleManager, utils class UserNotFoundException(Exception): diff --git a/modules/check_mode.py b/modules/check_mode.py index acddd703..d31f836e 100644 --- a/modules/check_mode.py +++ b/modules/check_mode.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import ModuleManager, utils LOWHIGH = { diff --git a/modules/check_urls.py b/modules/check_urls.py index 62f91e21..1ea83ebc 100644 --- a/modules/check_urls.py +++ b/modules/check_urls.py @@ -1,3 +1,5 @@ +#--depends-on commands +#--depends-on config #--require-config virustotal-api-key import re diff --git a/modules/coins.py b/modules/coins.py index 239050b5..e8435b99 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on permissions + import datetime, decimal, functools, math, random, re, time from src import ModuleManager, utils diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py index a90f287f..4c5ce49e 100644 --- a/modules/commands/__init__.py +++ b/modules/commands/__init__.py @@ -1,3 +1,6 @@ +#--depends-on config +#--depends-on permissions + import re, string from src import EventManager, ModuleManager, utils from . import outs diff --git a/modules/config.py b/modules/config.py index d53a3ac8..a6d06f3f 100644 --- a/modules/config.py +++ b/modules/config.py @@ -1,3 +1,7 @@ +#--depends-on channel_access +#--depends-on commands +#--depends-on permissions + import enum from src import ModuleManager, utils diff --git a/modules/ctcp.py b/modules/ctcp.py index 0b8c6dd6..6c973356 100644 --- a/modules/ctcp.py +++ b/modules/ctcp.py @@ -1,3 +1,5 @@ +#--depends-on config + import datetime from src import IRCBot, ModuleManager, utils diff --git a/modules/cve.py b/modules/cve.py index e0f51a22..63b478d7 100644 --- a/modules/cve.py +++ b/modules/cve.py @@ -1,3 +1,5 @@ +#--depends-on commands + import datetime, json from src import ModuleManager, utils diff --git a/modules/define.py b/modules/define.py index 5455f35f..42540a5c 100644 --- a/modules/define.py +++ b/modules/define.py @@ -1,3 +1,4 @@ +#--depends-on commands #--require-config wordnik-api-key import time diff --git a/modules/dice.py b/modules/dice.py index 1eb11d51..b3e93555 100644 --- a/modules/dice.py +++ b/modules/dice.py @@ -1,3 +1,5 @@ +#--depends-on commands + import random from src import ModuleManager, utils diff --git a/modules/duckduckgo.py b/modules/duckduckgo.py index 422449ca..6660d158 100644 --- a/modules/duckduckgo.py +++ b/modules/duckduckgo.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import ModuleManager, utils URL_DDG = "https://api.duckduckgo.com" diff --git a/modules/ducks.py b/modules/ducks.py index a2eb4a7a..e40b6a33 100644 --- a/modules/ducks.py +++ b/modules/ducks.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on config + import random from src import EventManager, ModuleManager, utils diff --git a/modules/echo.py b/modules/echo.py index 94f560fa..c8f2303d 100644 --- a/modules/echo.py +++ b/modules/echo.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/eval_lua.py b/modules/eval_lua.py index 9f833561..d219c2e3 100644 --- a/modules/eval_lua.py +++ b/modules/eval_lua.py @@ -1,3 +1,5 @@ +#--depends-on commands + import socket from src import ModuleManager, utils diff --git a/modules/eval_python.py b/modules/eval_python.py index b4c45e32..3dd4d66d 100644 --- a/modules/eval_python.py +++ b/modules/eval_python.py @@ -1,3 +1,5 @@ +#--depends-on commands + import html, json, socket from src import ModuleManager, utils diff --git a/modules/eval_rust.py b/modules/eval_rust.py index 2df2c43e..3d98a622 100644 --- a/modules/eval_rust.py +++ b/modules/eval_rust.py @@ -1,3 +1,5 @@ +#--depends-on commands + import json, socket from src import ModuleManager, utils diff --git a/modules/factoids.py b/modules/factoids.py index aa19ffec..3dbb7498 100644 --- a/modules/factoids.py +++ b/modules/factoids.py @@ -1,3 +1,5 @@ +#--depends-on commands + import re from src import ModuleManager, utils diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 105081db..b2a382b3 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -1,3 +1,10 @@ +#--depends-on channel_access +#--depends-on check_mode +#--depends-on commands +#--depends-on config +#--depends-on permissions +#--depends-on rest_api + import datetime, itertools, json, math, re, urllib.parse from src import EventManager, ModuleManager, utils diff --git a/modules/google.py b/modules/google.py index 04cf9858..f365ee90 100644 --- a/modules/google.py +++ b/modules/google.py @@ -1,3 +1,5 @@ +#--depends-on commands +#--depends-on config #--require-config google-api-key #--require-config google-search-id diff --git a/modules/greeting.py b/modules/greeting.py index 3e527606..a1005436 100644 --- a/modules/greeting.py +++ b/modules/greeting.py @@ -1,3 +1,5 @@ +#--depends-on config + from src import ModuleManager, utils @utils.export("channelset", {"setting": "greeting", diff --git a/modules/hash.py b/modules/hash.py index ba206105..08458666 100644 --- a/modules/hash.py +++ b/modules/hash.py @@ -1,3 +1,5 @@ +#--depends-on commands + import hashlib from src import ModuleManager, utils diff --git a/modules/ids.py b/modules/ids.py index 59d1ca93..f3fee05f 100644 --- a/modules/ids.py +++ b/modules/ids.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/imdb.py b/modules/imdb.py index 123379de..50c43d12 100644 --- a/modules/imdb.py +++ b/modules/imdb.py @@ -1,3 +1,4 @@ +#--depends-on commands #--require-config omdbapi-api-key import json diff --git a/modules/imgur.py b/modules/imgur.py index 93404cc6..94172513 100644 --- a/modules/imgur.py +++ b/modules/imgur.py @@ -1,3 +1,5 @@ +#--depends-on commands +#--depends-on config #--require-config imgur-api-key import re, datetime diff --git a/modules/in.py b/modules/in.py index f1eda122..b57eaf7e 100644 --- a/modules/in.py +++ b/modules/in.py @@ -1,3 +1,4 @@ +#--depends-on commands import time from src import ModuleManager, utils diff --git a/modules/ip_addresses.py b/modules/ip_addresses.py index c4993bfe..07f067fb 100644 --- a/modules/ip_addresses.py +++ b/modules/ip_addresses.py @@ -1,3 +1,5 @@ +#--depends-on commands + import re, socket from src import ModuleManager, utils diff --git a/modules/karma.py b/modules/karma.py index da2fed14..6dc4412d 100644 --- a/modules/karma.py +++ b/modules/karma.py @@ -1,3 +1,7 @@ +#--depends-on commands +#--depends-on config +#--depends-on permissions + import re, time from src import EventManager, ModuleManager, utils diff --git a/modules/lastfm.py b/modules/lastfm.py index fc2b8f67..19dd69a7 100644 --- a/modules/lastfm.py +++ b/modules/lastfm.py @@ -1,3 +1,5 @@ +#--depends-on commands +#--depends-on config #--require-config lastfm-api-key from datetime import datetime, timezone diff --git a/modules/location.py b/modules/location.py index 22e6a1ad..3fcef4ae 100644 --- a/modules/location.py +++ b/modules/location.py @@ -1,3 +1,5 @@ +#--depends-on config + from src import ModuleManager, utils URL_OPENCAGE = "https://api.opencagedata.com/geocode/v1/json" diff --git a/modules/modules.py b/modules/modules.py index 9f7b03a6..12023cc4 100644 --- a/modules/modules.py +++ b/modules/modules.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on permissions + from src import ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/nickserv.py b/modules/nickserv.py index 57f88cac..ad8330d5 100644 --- a/modules/nickserv.py +++ b/modules/nickserv.py @@ -1,3 +1,5 @@ +#--depends-on config + import base64 from src import EventManager, ModuleManager, utils diff --git a/modules/nr.py b/modules/nr.py index 9982a0c4..c7f988d6 100644 --- a/modules/nr.py +++ b/modules/nr.py @@ -1,3 +1,4 @@ +#--depends-on commands #--require-config nre-api-key import collections, re, time diff --git a/modules/perform.py b/modules/perform.py index c04ea092..56c518d4 100644 --- a/modules/perform.py +++ b/modules/perform.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on permissions + from src import EventManager, ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/permissions/__init__.py b/modules/permissions/__init__.py index c636a972..3075af6a 100644 --- a/modules/permissions/__init__.py +++ b/modules/permissions/__init__.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on config + import base64, os import scrypt from src import ModuleManager, utils diff --git a/modules/pong.py b/modules/pong.py index 3a4cb11d..1822a8a7 100644 --- a/modules/pong.py +++ b/modules/pong.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/print_activity.py b/modules/print_activity.py index 36f82c79..45b57e2a 100644 --- a/modules/print_activity.py +++ b/modules/print_activity.py @@ -1,3 +1,6 @@ +#--depends-on config +#--depends-on format_activity + import datetime from src import EventManager, ModuleManager, utils diff --git a/modules/pronouns.py b/modules/pronouns.py index d5e3702d..e0d9b2c1 100644 --- a/modules/pronouns.py +++ b/modules/pronouns.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on config + from src import ModuleManager, utils @utils.export("set", {"setting": "pronouns", "help": "Set your pronouns", diff --git a/modules/quotes.py b/modules/quotes.py index ebb2cca3..d114277a 100644 --- a/modules/quotes.py +++ b/modules/quotes.py @@ -1,3 +1,5 @@ +#--depends-on commands + import random, time from src import ModuleManager, utils diff --git a/modules/random_number.py b/modules/random_number.py index d0d46718..5380908c 100644 --- a/modules/random_number.py +++ b/modules/random_number.py @@ -1,3 +1,5 @@ +#--depends-on commands + import random, uuid from src import ModuleManager, utils diff --git a/modules/rest_api.py b/modules/rest_api.py index 38491e30..4dc742cd 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on config +#--depends-on permissions #--require-config tls-api-key #--require-config tls-api-certificate diff --git a/modules/rot13.py b/modules/rot13.py index 894bcc3c..4048597c 100644 --- a/modules/rot13.py +++ b/modules/rot13.py @@ -1,3 +1,5 @@ +#--depends-on commands + import codecs from src import ModuleManager, utils diff --git a/modules/sasl/__init__.py b/modules/sasl/__init__.py index 452f0c31..b62309a6 100644 --- a/modules/sasl/__init__.py +++ b/modules/sasl/__init__.py @@ -1,3 +1,5 @@ +#--depends-on config + import base64, hashlib, hmac, uuid from src import ModuleManager, utils from . import scram diff --git a/modules/scripts/__init__.py b/modules/scripts/__init__.py index 6eec46b9..6f939366 100644 --- a/modules/scripts/__init__.py +++ b/modules/scripts/__init__.py @@ -1,3 +1,4 @@ +#--depends-on commands import glob, json, os, subprocess from src import IRCObject, ModuleManager, utils diff --git a/modules/sed.py b/modules/sed.py index 646e5f47..0c7d6f2a 100644 --- a/modules/sed.py +++ b/modules/sed.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on config + import re, traceback from src import ModuleManager, utils diff --git a/modules/seen.py b/modules/seen.py index 14dbb201..0a141d89 100644 --- a/modules/seen.py +++ b/modules/seen.py @@ -1,3 +1,5 @@ +#--depends-on commands + import time from src import ModuleManager, utils diff --git a/modules/shakespeare.py b/modules/shakespeare.py index 93d20d64..337264a2 100644 --- a/modules/shakespeare.py +++ b/modules/shakespeare.py @@ -1,3 +1,4 @@ +#--depends-on commands import random from src import ModuleManager, utils diff --git a/modules/shorturl.py b/modules/shorturl.py index 13503725..d1be3fcd 100644 --- a/modules/shorturl.py +++ b/modules/shorturl.py @@ -1,3 +1,4 @@ +#--depends-on commands #--require-config bitly-api-key import re diff --git a/modules/silence.py b/modules/silence.py index d2a1f548..81ef68f7 100644 --- a/modules/silence.py +++ b/modules/silence.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on permissions + import time from src import EventManager, ModuleManager, utils diff --git a/modules/soundcloud.py b/modules/soundcloud.py index d2e3ba39..5b24b28e 100644 --- a/modules/soundcloud.py +++ b/modules/soundcloud.py @@ -1,3 +1,4 @@ +#--depends-on commands #--require-config soundcloud-api-key import json, re, time diff --git a/modules/spotify.py b/modules/spotify.py index 8600194f..242299d1 100644 --- a/modules/spotify.py +++ b/modules/spotify.py @@ -1,3 +1,4 @@ +#--depends-on commands #--require-config spotify-client-id #--require-config spotify-client-secret diff --git a/modules/stats.py b/modules/stats.py index 70d9a213..7c411343 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -1,3 +1,5 @@ +#--depends-on commands + import time from src import ModuleManager, utils diff --git a/modules/strax.py b/modules/strax.py index e2584712..3e00dd24 100644 --- a/modules/strax.py +++ b/modules/strax.py @@ -1,3 +1,5 @@ +#--depends-on commands + import random from src import ModuleManager, utils diff --git a/modules/strip_color.py b/modules/strip_color.py index b2cf8d69..f5e16027 100644 --- a/modules/strip_color.py +++ b/modules/strip_color.py @@ -1,3 +1,5 @@ +#--depends-on config + from src import ModuleManager, utils @utils.export("serverset", {"setting": "strip-color", diff --git a/modules/tfl.py b/modules/tfl.py index 7bc757b2..641ab754 100644 --- a/modules/tfl.py +++ b/modules/tfl.py @@ -1,3 +1,5 @@ +#--depends-on commands + import collections, datetime, re from src import ModuleManager, utils diff --git a/modules/thesaurus.py b/modules/thesaurus.py index 288c6ab9..25754a47 100644 --- a/modules/thesaurus.py +++ b/modules/thesaurus.py @@ -1,3 +1,4 @@ +#--depends-on commands #--require-config bighugethesaurus-api-key from src import ModuleManager, utils diff --git a/modules/timer.py b/modules/timer.py index b038e595..ce3939c6 100644 --- a/modules/timer.py +++ b/modules/timer.py @@ -1,3 +1,5 @@ +#--depends-on commands + import time from src import ModuleManager, utils diff --git a/modules/title.py b/modules/title.py index 075ae6c5..e1757f33 100644 --- a/modules/title.py +++ b/modules/title.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on config + import hashlib, re, urllib.parse from src import EventManager, ModuleManager, utils diff --git a/modules/to.py b/modules/to.py index 4d2fc226..4fd44cbd 100644 --- a/modules/to.py +++ b/modules/to.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import EventManager, ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/todo.py b/modules/todo.py index 1300cd36..95a5fdeb 100644 --- a/modules/todo.py +++ b/modules/todo.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import ModuleManager, utils class Module(ModuleManager.BaseModule): diff --git a/modules/trakt.py b/modules/trakt.py index 407bfa74..faf3ee81 100644 --- a/modules/trakt.py +++ b/modules/trakt.py @@ -1,3 +1,5 @@ +#--depends-on commands +#--depends-on config #--require-config trakt-api-key from src import ModuleManager, utils diff --git a/modules/translate.py b/modules/translate.py index 9ba05258..0f5d5fb5 100644 --- a/modules/translate.py +++ b/modules/translate.py @@ -1,3 +1,5 @@ +#--depends-on commands + import json, re from src import ModuleManager, utils diff --git a/modules/tweets.py b/modules/tweets.py index 0e3f908d..d100bb47 100644 --- a/modules/tweets.py +++ b/modules/tweets.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on config + #--require-config twitter-api-key #--require-config twitter-api-secret #--require-config twitter-access-token diff --git a/modules/upc.py b/modules/upc.py index 31bd1b31..08c02056 100644 --- a/modules/upc.py +++ b/modules/upc.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import ModuleManager, utils UPCITEMDB_URL = "https://api.upcitemdb.com/prod/trial/lookup" diff --git a/modules/urbandictionary.py b/modules/urbandictionary.py index 210a9ee3..1f147ed4 100644 --- a/modules/urbandictionary.py +++ b/modules/urbandictionary.py @@ -1,3 +1,5 @@ +#--depends-on commands + import json, re from src import ModuleManager, utils diff --git a/modules/user_time.py b/modules/user_time.py index 2f69e7a7..0e6fa6ce 100644 --- a/modules/user_time.py +++ b/modules/user_time.py @@ -1,3 +1,6 @@ +#--depends-on commands +#--depends-on location + import datetime from src import ModuleManager, utils diff --git a/modules/weather.py b/modules/weather.py index 4504d0e0..be3bb316 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -1,3 +1,5 @@ +#--depends-on commands +#--depends-on location #--require-config openweathermap-api-key from src import ModuleManager, utils diff --git a/modules/wikipedia.py b/modules/wikipedia.py index 14d6932b..1697aa92 100644 --- a/modules/wikipedia.py +++ b/modules/wikipedia.py @@ -1,3 +1,5 @@ +#--depends-on commands + from src import ModuleManager, utils URL_WIKIPEDIA = "https://en.wikipedia.org/w/api.php" diff --git a/modules/wolframalpha.py b/modules/wolframalpha.py index 62b0ad79..fbe93da1 100644 --- a/modules/wolframalpha.py +++ b/modules/wolframalpha.py @@ -1,4 +1,6 @@ +#--depends-on commands #--require-config wolframalpha-api-key + import json from src import ModuleManager, utils diff --git a/modules/words.py b/modules/words.py index 3af06f4b..513a26fe 100644 --- a/modules/words.py +++ b/modules/words.py @@ -1,3 +1,7 @@ +#--depends-on commands +#--depends-on config +#--depends-on permissions + import time from src import EventManager, ModuleManager, utils diff --git a/modules/youtube.py b/modules/youtube.py index c485a75f..8742ad65 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -1,3 +1,5 @@ +#--depends-on commands +#--depends-on config #--require-config google-api-key import re