Skip to content

Commit

Permalink
Rename HASTEBIN to HASTEBIN_LEGACY
Browse files Browse the repository at this point in the history
Toptal has just launched a new version of Hastebin (toptal/haste-server#429) that requires a GitHub token to access the API. We can probably create a scraper to at least read pastes.
  • Loading branch information
Insprill committed Feb 1, 2023
1 parent afce88e commit 375100d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,9 @@ commands:

codebin:
services:
HASTEBIN:
HASTEBIN_LEGACY:
- paste.md-5.net
- paste.helpch.at
- hastebin.net
SOURCE_BIN:
- sourceb.in
LUCKO_PASTE:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import net.insprill.robotinsprill.configuration.BotConfig

@Suppress("unused")
enum class BinService(private val downloadUrl: String) {
HASTEBIN("https://%s/raw/%s") {
HASTEBIN_LEGACY("https://%s/raw/%s") {
override suspend fun uploadBinReq(domain: String, data: String): Request {
return Fuel.post("https://$domain/documents").body(data, Charsets.UTF_8)
}
Expand Down

0 comments on commit 375100d

Please sign in to comment.