forked from chainflag/eth-faucet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from stratisproject/feature/strax-faucet
Discord integration
- Loading branch information
Showing
6 changed files
with
446 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
package server | ||
|
||
type Config struct { | ||
network string | ||
symbol string | ||
httpPort int | ||
interval int | ||
payout int | ||
proxyCount int | ||
hcaptchaSiteKey string | ||
hcaptchaSecret string | ||
network string | ||
symbol string | ||
httpPort int | ||
interval int | ||
payout int | ||
proxyCount int | ||
hcaptchaSiteKey string | ||
hcaptchaSecret string | ||
discordClientId string | ||
discordClientSecret string | ||
discordRedirectUrl string | ||
} | ||
|
||
func NewConfig(network, symbol string, httpPort, interval, payout, proxyCount int, hcaptchaSiteKey, hcaptchaSecret string) *Config { | ||
func NewConfig(network, symbol string, httpPort, interval, payout, proxyCount int, hcaptchaSiteKey, hcaptchaSecret, discordClientId, discordClientSecret, discordRedirectUrl string) *Config { | ||
return &Config{ | ||
network: network, | ||
symbol: symbol, | ||
httpPort: httpPort, | ||
interval: interval, | ||
payout: payout, | ||
proxyCount: proxyCount, | ||
hcaptchaSiteKey: hcaptchaSiteKey, | ||
hcaptchaSecret: hcaptchaSecret, | ||
network: network, | ||
symbol: symbol, | ||
httpPort: httpPort, | ||
interval: interval, | ||
payout: payout, | ||
proxyCount: proxyCount, | ||
hcaptchaSiteKey: hcaptchaSiteKey, | ||
hcaptchaSecret: hcaptchaSecret, | ||
discordClientId: discordClientId, | ||
discordClientSecret: discordClientSecret, | ||
discordRedirectUrl: discordRedirectUrl, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.