Update README.md + Translations (#6)
* Update README.md Now we don't have config.env anymore, we now use config.json inside props folder * Add portuguese.json * Set portuguese language if user's telegram app is in portuguese * oh fudge, I forgot this one --------- Co-authored-by: GiovaniFZ <giovanifinazzi@gmail.com>
This commit is contained in:
parent
c692edbc66
commit
fd3196a34f
10 changed files with 52 additions and 14 deletions
|
@ -1,7 +1,8 @@
|
|||
const Strings = require('../locales/english.json');
|
||||
const resources = require('../props/resources.json');
|
||||
const { getStrings } = require('./checklang');
|
||||
|
||||
function furryFunction(ctx) {
|
||||
const Strings = getStrings(ctx.from.language_code);
|
||||
if (Math.random() < 0.5 ? "yes" : "no" === "yes") {
|
||||
ctx.replyWithAnimation(
|
||||
resources.furryGif, {
|
||||
|
@ -21,6 +22,7 @@ function furryFunction(ctx) {
|
|||
}
|
||||
|
||||
function gayFunction(ctx) {
|
||||
const Strings = getStrings(ctx.from.language_code);
|
||||
if (Math.random() < 0.5 ? "yes" : "no" === "yes") {
|
||||
ctx.replyWithAnimation(
|
||||
resources.gayFlag, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue