Closed karandevtyagi closed 3 years ago
Heroku will be good. JODC has a heroku account.
Cool, let's do that! 👍🏻
Maybe we can get more people involved here from the community and divide some of these peripheral tasks among them?
Made some changes to the PR, so you don't have to write onSomeCommand(bot) for every command you make. I'm using 'fs' module, which will automatically import and run all the files present in 'command' directory. You have to make some changes to 'commands.js' files also in order to make this work. My only concern is that, if it will work on heroku or not.
@aayushmau5 It should. I assume you are importing a json
for this? Also, can you push that on your fork so we can check it out?
Ps. This should come in handy: https://www.npmjs.com/package/babel-plugin-inline-json-import
https://github.com/aayushmau5/bot Here's the fork. Let me see your suggestion also.Thanks.
LGTM. Can you deploy your fork on your local and check whether it's working as intended?
Yup. It is working on my local machine. Should i deploy it using heroku and check ?
We do have to deploy this to heroku anyway, for every time a PR comes through (we'll write a workflow for that soon) we'll have to mock calls for testing if everything is working fine, so go ahead! 👍🏻
Nice work! I think we should work a bit more on this pull request and add some tests to verify these features in the future. Then we should be good to merge. I'll write up the tests, although we do need to host this bot somewhere before we can test this. Heroku maybe?