discord-ifttt
Attention!!! Service has been shut down!!!
I hit Usage Limit on Vercel and since I don't want my account to be blocked I've decided to shut the service and release the code so everyone could host it by themselves.
I'm really sorry for that, but there's no other available options for me.
If you gonna self-host the instance, feel free to share link to it with friends, so they don't have to re-host it.
Don't worry about hitting the limit, you have to receive really big load of requests to hit it, like it was in my case.
Selfhostable version of the service can be found here!
Thanks everyone for using the service, till the next time 👋
How to self-host?
- Create GitHub/GitLab/Bitbucket account if you don't have one.
- Login on Vercel with it.
-
If you want to simplify future updates, follow the next steps:
- Go to Birdie0/discord-ifttt and click Fork
- Go the Vercel - New Project page, select Git provider and newly forked repo from the list
- Press Import and Deploy on the next page
- Done!
-
Otherwise follow these:
- Create GitHub/GitLab/Bitbucket account if you don't have one.
- Login on Vercel with it.
- Go there
- Under Create Git Repository choose same service as on step 1
- Enter repository name, it will become
https://[repo-name].vercel.app/
after the deploy
- Click Create, when it finish you will be redirected.
- Done!
How to update?
If your instance is fork-based (on the GitHub page it should say forked from Birdie0/discord-ifttt),
click Sync fork below Code button, then click Update branch button.
If project was cloned without fork reference (in case you used Deploy button) there's 2 ways to solve this:
-
Clone project locally or use GitHub Codespaces and push latest changes to it from main repository:
-
Open your fork on GitHub
-
Click Code, then Codespaces and Create Codespace on master
-
After it finishes loading, open Terminal by pressing Ctrl + ~
(~ is between Esc and Tab)
- Paste the commands there and press Enter,
you can copy whole block and paste it in terminal with right click:
git remote add upstream https://github.com/Birdie0/discord-ifttt.git
git fetch upstream
git rebase upstream/master
git push origin master
-
Delete repository and fork it.
-
Go to Settings, scroll to the bottom of the page, click Delete this repository button
-
After repository has been deleted, go to Birdie0/discord-ifttt
and click Fork button at the top
-
Go to the Vercel Dashboard, click on project, then Settings,
in list on the left click Git, under Connected Git Repository it should say that project is not linked,
click Reconnect and select from the list newly forked repository
-
After that you should be able to update the project using the very first method since it's now fork-based
What? Why?
Currently some requests sent from IFTTT to Discord fail because because too many requests to this host
.
As workaround I made mirror/bridge which will run requests through itself, additionally provide new features, handle ratelimits.
Here are some notable improvements:
-
application/json
- invalid JSON won't be sent to Discord
-
text/plain
- allows to use current header with Discord Webhooks, body content will be message "content"
- only first 2k characters will be in body, to prevent it from breakage due to body being too big
How?
Replace discord.com
with discord-ifttt.vercel.app
in webhook url and you're ready to go.
Changelog
-
28.05.21
- service has been deprecated! please, self-host it using link above.
-
18.04.21
- added little ratelimit handling, should decrease number of requests that got 429
-
27.02.21
- function rewritten from Ruby into TypeScript
Who?
Hi, I'm Birdie and I made this :) There's some other stuff I created: