Remove all the Broken User-Agents

This commit is contained in:
dragonfire535
2017-03-12 13:23:44 -04:00
parent 41d8eaaf1f
commit 27cbe07fb6
8 changed files with 3 additions and 33 deletions
-3
View File
@@ -32,9 +32,6 @@ class DefineCommand extends commando.Command {
includeTags: false,
api_key: config.wordnikkey
},
headers: {
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
},
json: true
}
request(options).then(function (response) {
-3
View File
@@ -30,9 +30,6 @@ class OsuCommand extends commando.Command {
u: usernametosearch,
type: "string"
},
headers: {
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
},
json: true
}
request(options).then(function (response) {
-3
View File
@@ -32,9 +32,6 @@ class WattpadCommand extends commando.Command {
query: querybook,
limit: 1
},
headers: {
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
},
json: true
}
request(options).then(function (response) {
-3
View File
@@ -24,9 +24,6 @@ class WikipediaCommand extends commando.Command {
const options = {
method: 'GET',
uri: "https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&titles=" + wikied + "&exintro=&explaintext=&redirects=&formatversion=2",
headers: {
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
},
json: true
}
request(options).then(function (response) {
-3
View File
@@ -33,9 +33,6 @@ class YouTubeCommand extends commando.Command {
order: 'viewCount',
key: config.youtubekey
},
headers: {
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
},
json: true
}
request(options).then(function (response) {
-3
View File
@@ -24,9 +24,6 @@ class YuGiOhCommand extends commando.Command {
const options = {
method: 'GET',
uri: 'http://yugiohprices.com/api/card_data/' + cardname,
headers: {
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
},
json: true
}
request(options).then(function (response) {
+1 -2
View File
@@ -31,8 +31,7 @@ class YodaCommand extends commando.Command {
},
headers: {
'X-Mashape-Key': config.mashapekey,
'Accept': "text/plain",
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
'Accept': "text/plain"
},
json: true
}
+2 -13
View File
@@ -70,9 +70,6 @@ client.on('message', (message) => {
body: {
content: messagecontent
},
headers: {
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
},
json: true
}
request(sendPOST).then(function (parsedBody) {
@@ -125,9 +122,6 @@ client.on('guildCreate', guild => {
key: config.carbonkey,
servercount: results.reduce((prev, val) => prev + val, 0)
},
headers: {
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
},
json: true
}
const DBotsPOST = {
@@ -137,8 +131,7 @@ client.on('guildCreate', guild => {
server_count: results.reduce((prev, val) => prev + val, 0)
},
headers: {
'Authorization': config.botskey,
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
'Authorization': config.botskey
},
json: true
}
@@ -166,9 +159,6 @@ client.on('guildDelete', guild => {
key: config.carbonkey,
servercount: results.reduce((prev, val) => prev + val, 0)
},
headers: {
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
},
json: true
}
const DBotsPOST = {
@@ -178,8 +168,7 @@ client.on('guildDelete', guild => {
server_count: results.reduce((prev, val) => prev + val, 0)
},
headers: {
'Authorization': config.botskey,
'User-Agent': 'XiaoBot - dragonfire535 (http://dragonfire535.tk)'
'Authorization': config.botskey
},
json: true
}