utarwyn / discord-tictactoe

Highly customizable innovative Discord Bot for playing Tic-Tac-Toe 🎮🏅
https://npmjs.com/package/discord-tictactoe
Apache License 2.0
100 stars 35 forks source link

Can i translate it to other language and push to heroku? #6

Closed Phil9424 closed 4 years ago

Phil9424 commented 4 years ago

Can i translate it to other language and push to heroku?

utarwyn commented 4 years ago

Hello! You can, of course, translate the bot to another language. You can find currently supported languages in this folder: https://github.com/utarwyn/discord-tictactoe/tree/master/config/locales Don't hesitate to contribute through a PR to help me!

You can also push the bot to heroku for your personal use. I'd like the bot to be able to be used without installation but it's not up to date yet, so you can use a platform like Heroku to host it.

Phil9424 commented 4 years ago

Hi. I want to use your bot in my project. And I can't change anything in locales folder in node modules. Because after deployed package in heroki. It is default in English. Cuz heroku download it from npmjs not from my locales. At least can you upload to your GitHub my edited Json file of locales? It is in my language??

Hello! You can, of course, translate the bot to another language. You can find currently supported languages in this folder: https://github.com/utarwyn/discord-tictactoe/tree/master/config/locales Don't hesitate to contribute through a PR to help me! You can also push the bot to heroku for your personal use. I'd like the bot to be able to be used without installation but it's not up to date yet, so you can use a platform like Heroku to host it. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or unsubscribe .

utarwyn commented 4 years ago

You want to use a language that is not supported for now, am I right? Send me your file and I will add it to the repository yes! But yes indeed you can't use a personal locale. I should maybe work on a way to use a custom language file.

Phil9424 commented 4 years ago

Yes. Take it. Thank you! ru.zip

utarwyn commented 4 years ago

Thank you for the translation! Just one thing, you have not fully translated the value in game.expire: "Игра была досрочно завершена expired... Может потому что никто не активил?"

There is still the word "expire".

Phil9424 commented 4 years ago

I forgot to delete it)

Phil9424 commented 4 years ago

Just delete this word)

Phil9424 commented 4 years ago

It is an Russian language

utarwyn commented 4 years ago

okay haha thank you :)

Phil9424 commented 4 years ago

Can I use it now?

utarwyn commented 4 years ago

I'm updating the readme and after I will release the 2.0.5 with your locale file 👍

Phil9424 commented 4 years ago

Thx so much. And last question is. Can I connect it for my currency system to play for currency and connect to db to make an rating?

utarwyn commented 4 years ago

hmm not for now but nice idea yep! By using an api method when a user wins for example?

Phil9424 commented 4 years ago

When user want to play with smbd, bot checks his balance and if check successfull and user has money, bot will check opponent's balance. And if it successfull , game starts and users has pay money. After win of one of them, bot gives money to winner.

utarwyn commented 4 years ago

I cannot create an integration as complex as this one, because my bot must be generic (and work for everyone). BUT I can create a bunch of methods to check if a player can play, when it wins, etc. Inside them you will be able to code your balance checking system, etc.

Is that okay for you? I can create an issue for that new feature.

Phil9424 commented 4 years ago

Yep. It will be more helpful!

Phil9424 commented 4 years ago

Hey. Can we create one more beautiful thing?) We can make it together!

utarwyn commented 4 years ago

Why not, what's your idea?

Phil9424 commented 4 years ago

I want to create beautiful thing. It's an multiplayer poker. I saw it like: embed, reaction control. Everyone who pressed the reaction will be connected to the game. And bot sends to user's dm his pocket cards. After it, like tictactoe, every player's move and betting a cash. After first round. Bot sends flop card to mesage.guild.channel. and you have 3 buttons. Check bet. Fold. After pressing bet - message collector. And after game. Winner take all money.

utarwyn commented 4 years ago

Hmm nice idea yep! Let's discuss that on Discord if you want: Utarwyn#1334 The release 2.0.5 is now out: https://www.npmjs.com/package/discord-tictactoe

Phil9424 commented 4 years ago

Thx. Tomorrow I will write you.

utarwyn commented 4 years ago

Have a nice evening! :smile: