-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webhooks working? #9
Comments
Where should I enter? |
Hi @Sz4by ,
const newswire = require('./newswire');
const latestNews = new newswire(type, webhookURL);
Example of using const newswire = require('./newswire');
const latestNews = new newswire("gtav", "https://...");
Hopefully, I'll organize the project to make it more user-friendly, but that should do it for now. If you have any issues, feel free to reply to this issue or open a new one. |
And it doesn't matter where I enter it? |
Yeah as long the library is linked correctly, you can put that piece of code anywhere, and it should run. Whether it is a bot or another script that runs all the time. |
Thank you, and one more question, it's not possible to put Hungarian language, right? |
Library currently doesn't support language localization for news, but I'll probably give it a small update later this week to support languages and other stuff. For now, you can change the following line with your language locale code. For example I want it to be German, so I would change it to But for Hungarian language |
It's ok thanks |
if you'll put it on the same file as the |
[READY] Started news feed for gtav. Feed refreshes every 2 hours. |
If it's just freshly deployed, it should send the latest article in the category, and it'll refresh every 2 hours in case a new article is released in that time-frame. If it didn't send, make sure that webhook url is correct |
I think it only works on Windows and not on hosting? |
|
Yeah I think, it won't work with Linux for now. At the time of its creation, I was just making it for fun. Probably I'll update it this week with quality-of-life changes. |
It would be nice if Linux worked |
Hmm?
The text was updated successfully, but these errors were encountered: