Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Change HTTP to HTTPS #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CharizardtheFireMage
Copy link

Whenever I add a team with this bot, I check if the team copied into the bot's teams.json but whenever I view the JSON file, the team that I had uploaded into the bot's team database via .teams add, [name], [tier], [hastebin link] didn't copy the team at all. When I had a look between hastebin and features-battle.js, I had found out that the file rather uses http than https as hastebin is linked as [https://hastebin.com/]. Hence, why I am sending a pull request to fix this error in adding teams.

@Lord-Haji
Copy link
Contributor

Lord-Haji commented May 25, 2017

PR naming should be like Hastebin: Use SSL URL @CharizardtheFireMage

@Lord-Haji
Copy link
Contributor

Side Note: If you are doing this

if (!Formats[format]) return this.reply(this.trad('format') + " __" + format + "__ " + this.trad('notexists'));
this.reply(this.trad('download') + '... (' + link + ')');
var http = require('http');
var http = require('https');
Copy link
Contributor

@Lord-Haji Lord-Haji May 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable http should be renamed to https (coz It looks kinda weird)
And change its references too obv

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's truly unnecessary if https is defined

@Lord-Haji
Copy link
Contributor

Lord-Haji commented May 28, 2017

This PR and #63 should close #61 @asanrom

@Mystifi
Copy link
Contributor

Mystifi commented May 30, 2017

Note that this isn't main, @Lord-Haji, and that while clearer PR names are preferred, it's not as necessary since @CharizardtheFireMage provided a detailed commit description

@Lord-Haji
Copy link
Contributor

Thats sorta true @Mystifi

@jaredgrady
Copy link

apparently i made a duplicate pr to fix this. Imma bump this and close out mine.

@DeathlyPlays
Copy link

@CharizardtheFireMage I added your changes to my bot, and it worked as seen on http://replay.pokemonshowdown.com/exiled-gen7ou-800 thanks, hope you don't mind me adding these changes on my github and I plan to continue Ecuacion's bot work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants