Add depends-on hashflags to relevant modules

This commit is contained in:
jesopo 2019-05-25 21:40:06 +01:00
parent 552902d462
commit 268c5adb3c
82 changed files with 190 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#--depends-on commands
import random import random
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on config
from src import ModuleManager, utils from src import ModuleManager, utils
@utils.export("serverset", {"setting": "accept-invites", @utils.export("serverset", {"setting": "accept-invites",

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on permissions
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,8 @@
#--depends-on channel_access
#--depends-on commands
#--depends-on config
#--depends-on permissions
from src import ModuleManager, utils from src import ModuleManager, utils
@utils.export("channelset", {"setting": "automode", @utils.export("channelset", {"setting": "automode",

View file

@ -1,3 +1,5 @@
#--depends-on commands
import datetime, re import datetime, re
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,6 @@
#--depends-on check_mode
#--depends-on commands
import time import time
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on config
import datetime import datetime
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,5 @@
#--depends-on commands
import json, re import json, re
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on config
from src import ModuleManager, utils from src import ModuleManager, utils
@utils.export("serverset", {"setting": "bot-channel", @utils.export("serverset", {"setting": "bot-channel",

View file

@ -1,3 +1,6 @@
#--depends-on check_mode
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,6 @@
#--depends-on config
#--depends-on format_activity
import datetime, os.path import datetime, os.path
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,8 @@
#--depends-on channel_access
#--depends-on check_mode
#--depends-on commands
#--depends-on config
from src import ModuleManager, utils from src import ModuleManager, utils
class UserNotFoundException(Exception): class UserNotFoundException(Exception):

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
LOWHIGH = { LOWHIGH = {

View file

@ -1,3 +1,5 @@
#--depends-on commands
#--depends-on config
#--require-config virustotal-api-key #--require-config virustotal-api-key
import re import re

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on permissions
import datetime, decimal, functools, math, random, re, time import datetime, decimal, functools, math, random, re, time
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,6 @@
#--depends-on config
#--depends-on permissions
import re, string import re, string
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils
from . import outs from . import outs

View file

@ -1,3 +1,7 @@
#--depends-on channel_access
#--depends-on commands
#--depends-on permissions
import enum import enum
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on config
import datetime import datetime
from src import IRCBot, ModuleManager, utils from src import IRCBot, ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import datetime, json import datetime, json
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,4 @@
#--depends-on commands
#--require-config wordnik-api-key #--require-config wordnik-api-key
import time import time

View file

@ -1,3 +1,5 @@
#--depends-on commands
import random import random
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
URL_DDG = "https://api.duckduckgo.com" URL_DDG = "https://api.duckduckgo.com"

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on config
import random import random
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,5 @@
#--depends-on commands
import socket import socket
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import html, json, socket import html, json, socket
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import json, socket import json, socket
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import re import re
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -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 import datetime, itertools, json, math, re, urllib.parse
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
#--depends-on config
#--require-config google-api-key #--require-config google-api-key
#--require-config google-search-id #--require-config google-search-id

View file

@ -1,3 +1,5 @@
#--depends-on config
from src import ModuleManager, utils from src import ModuleManager, utils
@utils.export("channelset", {"setting": "greeting", @utils.export("channelset", {"setting": "greeting",

View file

@ -1,3 +1,5 @@
#--depends-on commands
import hashlib import hashlib
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,4 @@
#--depends-on commands
#--require-config omdbapi-api-key #--require-config omdbapi-api-key
import json import json

View file

@ -1,3 +1,5 @@
#--depends-on commands
#--depends-on config
#--require-config imgur-api-key #--require-config imgur-api-key
import re, datetime import re, datetime

View file

@ -1,3 +1,4 @@
#--depends-on commands
import time import time
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import re, socket import re, socket
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,7 @@
#--depends-on commands
#--depends-on config
#--depends-on permissions
import re, time import re, time
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
#--depends-on config
#--require-config lastfm-api-key #--require-config lastfm-api-key
from datetime import datetime, timezone from datetime import datetime, timezone

View file

@ -1,3 +1,5 @@
#--depends-on config
from src import ModuleManager, utils from src import ModuleManager, utils
URL_OPENCAGE = "https://api.opencagedata.com/geocode/v1/json" URL_OPENCAGE = "https://api.opencagedata.com/geocode/v1/json"

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on permissions
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,5 @@
#--depends-on config
import base64 import base64
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils

View file

@ -1,3 +1,4 @@
#--depends-on commands
#--require-config nre-api-key #--require-config nre-api-key
import collections, re, time import collections, re, time

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on permissions
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on config
import base64, os import base64, os
import scrypt import scrypt
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,6 @@
#--depends-on config
#--depends-on format_activity
import datetime import datetime
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on config
from src import ModuleManager, utils from src import ModuleManager, utils
@utils.export("set", {"setting": "pronouns", "help": "Set your pronouns", @utils.export("set", {"setting": "pronouns", "help": "Set your pronouns",

View file

@ -1,3 +1,5 @@
#--depends-on commands
import random, time import random, time
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import random, uuid import random, uuid
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on config
#--depends-on permissions
#--require-config tls-api-key #--require-config tls-api-key
#--require-config tls-api-certificate #--require-config tls-api-certificate

View file

@ -1,3 +1,5 @@
#--depends-on commands
import codecs import codecs
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on config
import base64, hashlib, hmac, uuid import base64, hashlib, hmac, uuid
from src import ModuleManager, utils from src import ModuleManager, utils
from . import scram from . import scram

View file

@ -1,3 +1,4 @@
#--depends-on commands
import glob, json, os, subprocess import glob, json, os, subprocess
from src import IRCObject, ModuleManager, utils from src import IRCObject, ModuleManager, utils

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on config
import re, traceback import re, traceback
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import time import time
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,4 @@
#--depends-on commands
import random import random
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,4 @@
#--depends-on commands
#--require-config bitly-api-key #--require-config bitly-api-key
import re import re

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on permissions
import time import time
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils

View file

@ -1,3 +1,4 @@
#--depends-on commands
#--require-config soundcloud-api-key #--require-config soundcloud-api-key
import json, re, time import json, re, time

View file

@ -1,3 +1,4 @@
#--depends-on commands
#--require-config spotify-client-id #--require-config spotify-client-id
#--require-config spotify-client-secret #--require-config spotify-client-secret

View file

@ -1,3 +1,5 @@
#--depends-on commands
import time import time
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import random import random
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on config
from src import ModuleManager, utils from src import ModuleManager, utils
@utils.export("serverset", {"setting": "strip-color", @utils.export("serverset", {"setting": "strip-color",

View file

@ -1,3 +1,5 @@
#--depends-on commands
import collections, datetime, re import collections, datetime, re
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,4 @@
#--depends-on commands
#--require-config bighugethesaurus-api-key #--require-config bighugethesaurus-api-key
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import time import time
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on config
import hashlib, re, urllib.parse import hashlib, re, urllib.parse
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):

View file

@ -1,3 +1,5 @@
#--depends-on commands
#--depends-on config
#--require-config trakt-api-key #--require-config trakt-api-key
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
import json, re import json, re
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on config
#--require-config twitter-api-key #--require-config twitter-api-key
#--require-config twitter-api-secret #--require-config twitter-api-secret
#--require-config twitter-access-token #--require-config twitter-access-token

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
UPCITEMDB_URL = "https://api.upcitemdb.com/prod/trial/lookup" UPCITEMDB_URL = "https://api.upcitemdb.com/prod/trial/lookup"

View file

@ -1,3 +1,5 @@
#--depends-on commands
import json, re import json, re
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on location
import datetime import datetime
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
#--depends-on location
#--require-config openweathermap-api-key #--require-config openweathermap-api-key
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
from src import ModuleManager, utils from src import ModuleManager, utils
URL_WIKIPEDIA = "https://en.wikipedia.org/w/api.php" URL_WIKIPEDIA = "https://en.wikipedia.org/w/api.php"

View file

@ -1,4 +1,6 @@
#--depends-on commands
#--require-config wolframalpha-api-key #--require-config wolframalpha-api-key
import json import json
from src import ModuleManager, utils from src import ModuleManager, utils

View file

@ -1,3 +1,7 @@
#--depends-on commands
#--depends-on config
#--depends-on permissions
import time import time
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils

View file

@ -1,3 +1,5 @@
#--depends-on commands
#--depends-on config
#--require-config google-api-key #--require-config google-api-key
import re import re