This commit is contained in:
deathbybandaid 2019-05-08 14:08:30 -04:00
parent 67a4025f83
commit 4bcce4f36f
2 changed files with 3 additions and 7 deletions

View File

@ -20,10 +20,6 @@ import json
from fake_useragent import UserAgent
import random
# user agent and header
ua = UserAgent()
header = {'User-Agent': str(ua.chrome)}
class GifAPIMainSection(StaticSection):
extra = ValidatedAttribute('extra', default=None)
@ -93,6 +89,8 @@ def shutdown(bot):
def getGif(bot, searchdict):
header = {'User-Agent': str(UserAgent().chrome)}
# list of defaults
query_defaults = {
"query": None,

View File

@ -20,9 +20,6 @@ from pygit2 import clone_repository
import spicemanip
# user agent and header
ua = UserAgent()
header = {'User-Agent': str(ua.chrome)}
"""Variable References"""
@ -160,6 +157,7 @@ def humanized_time(countdownseconds):
def googlesearch(bot, searchterm, searchtype=None):
header = {'User-Agent': str(UserAgent().chrome)}
data = searchterm.replace(' ', '+')
lookfor = data.replace(':', '%3A')
try: