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
from src import ModuleManager, utils

View file

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

View file

@ -1,3 +1,6 @@
#--depends-on commands
#--depends-on permissions
from src import ModuleManager, utils
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
@utils.export("channelset", {"setting": "automode",

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,6 @@
#--depends-on config
#--depends-on format_activity
import datetime, os.path
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
class UserNotFoundException(Exception):

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
#--depends-on commands
import re
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
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-search-id

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
#--depends-on config
from src import ModuleManager, utils
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
class Module(ModuleManager.BaseModule):

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
#--depends-on commands
import random, uuid
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-certificate

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,5 @@
#--depends-on commands
import json, re
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-secret
#--require-config twitter-access-token

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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