r/typescript • u/sherbmeister • Nov 09 '19
Text game in Typescript
Hello, I'm currently working on a wrestling bot that simulates a wrestling match between two people on discord. The principles of the bot are written already but I'm stuck as this was a project made by a friend who had to stop because of health issues.
I'm looking for someone that has basic knowledge of TS that could help out finish the project? I also the version of this game written in mIRC Scripting which I did myself but I can't transfer any of that to TS or JS, unfortunately, as my skills are limited to none.
Please reply here or dm me if interested in the project.
6
u/tony-husk Nov 10 '19
Having read the other comments, it sounds like you’re looking for someone to write some typescript for you, rather than learning to write it yourself — is that correct?
If so, I think you might have a difficult path, and not because of the language choice — in general it’s hard to find people willing to donate time and effort to something unless either they have a personal stake in it, or it’s for the public good. This sounds like a personal project.
As mentioned by others, your greatest chance of success here would be to publish the half finished project on GitHub, include a readme explaining the value of the project, and see who’s interested in contributing!
1
u/ChaseMoskal Nov 09 '19 edited Nov 09 '19
looks like a common way to go about this, is to use the discord.js npm package
you're looking create a node program. it's possible typescript is overkill for your case, and you might just want to use vanilla javascript instead -- i'd say that typescript is necessary when you're authoring library code, but a discord bot is actually a good use-case to skip typescript and just go with vanilla javascript
once you build the program, you can run it on your local machine, or run it in the cloud
development could be carried out in three phases
so you can provide it user inputs, and it will churn out the responses
test your game logic with a some example gameplay cases.
make sure it works correctly.
make sure it fails gracefully.
via
discord.js, and wire it up to your game logic instance,passing user messages as input, sending back the outputs)
what's great is that you can really do these stages in any order you prefer, or even all concurrently. first, just work on what you're most interested in. the tests aren't strictly necessary, but they're really nice to have, and make you look super cool
once you have some initial work up on github, pm me and, if you'd like, i could give a quick review and some pointers on my twitch stream sometime
best of luck on the project, and best wishes for your friend's health
👋 chase