mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
header
This commit is contained in:
parent
67a4025f83
commit
4bcce4f36f
@ -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,
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user