Skip to content

Commit

Permalink
fix translate bot
Browse files Browse the repository at this point in the history
  • Loading branch information
transkarpation committed Mar 6, 2024
1 parent 293855f commit 3cd76ce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 25 deletions.
42 changes: 19 additions & 23 deletions bots/translateBot/.env.example
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
TYPE=
TYPE=DEV
#--- < Main data * > ---
BOT_ADDRESS=
CONFERENCE_ADDRESS=
APP_USERNAME=
APP_PASSWORD=
DEFAULT_ROOM=
API_URL=
USER_LIMIT_PER_ROOM=
BOT_ADDRESS=dev.dxmpp.com
CONFERENCE_ADDRESS=@conference.dev.dxmpp.com
APP_USERNAME=[email protected]
APP_PASSWORD=[email protected]

DEFAULT_ROOM=3f61d58b25c5c83458a967c7a4a2d198f1c55d4d3fe5ed8ace931f2d8b3e7145@conference.dev.dxmpp.com
API_URL=https://api.ethoradev.com/v1/
USER_LIMIT_PER_ROOM=3
#--- < Bot information > ---
FIRST_NAME=
LAST_NAME=
PHOTO_URL=
TOKEN_NAME=''
PRESENCE_WAIT=
#--- < Database > ---
MONGO_USERNAME=
MONGO_PASSWORD=
MONGO_HOSTNAME=
MONGO_PORT=
MONGO_DB=
#--- < Settings * > ---
PRESENCE=
INVITATION=
FIRST_NAME=Translate
LAST_NAME=Bot
PHOTO_URL=https://cdn-icons-png.flaticon.com/512/3898/3898082.png
TOKEN_NAME='Example token'
PRESENCE_WAIT=5

PRESENCE=false
INVITATION=true
#--- < Application token * > ---
TOKEN=''
TOKEN='JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImRpc3BsYXlOYW1lIjoiQVRPTSIsImRvbWFpbk5hbWUiOiI2NWU4MGY4YmE1NGVmZWU1MWJiMjg3YWIiLCJjcmVhdG9ySWQiOiI2NWU3MmZlNGE1NGVmZWU1MWJiMjdhODYiLCJidW5kbGVJZCI6ImNvbS5ldGhvcmEiLCJwcmltYXJ5Q29sb3IiOiIjMDAzRTlDIiwic2Vjb25kYXJ5Q29sb3IiOiIjMjc3NUVBIiwiY29pblN5bWJvbCI6IkVUTyIsImNvaW5OYW1lIjoiRXRob3JhIENvaW4iLCJkZWZhdWx0QWNjZXNzUHJvZmlsZU9wZW4iOnRydWUsImRlZmF1bHRBY2Nlc3NBc3NldHNPcGVuIjp0cnVlLCJ1c2Vyc0NhbkZyZWUiOnRydWUsImlzVXNlckRhdGFFbmNyeXB0ZWQiOmZhbHNlLCJwYXJlbnRBcHBJZCI6IjY0NmNjOGRjOTZkNGE0ZGM4ZjdiMmYyZCIsImlzQWxsb3dlZE5ld0FwcENyZWF0ZSI6dHJ1ZSwiaXNCYXNlQXBwIjpmYWxzZSwiX2lkIjoiNjVlODBmOGJhNTRlZmVlNTFiYjI4N2FkIiwiZGVmYXVsdFJvb21zIjpbXSwiY3JlYXRlZEF0IjoiMjAyNC0wMy0wNlQwNjozOTowNy42ODlaIiwidXBkYXRlZEF0IjoiMjAyNC0wMy0wNlQwNjozOTowNy42ODlaIiwiX192IjowfSwiaWF0IjoxNzA5NzA3MTYzfQ.gDnE_PQMGxExzz1EVDcFNzqY-n8bAC1ZgVey86PwZS0'
GOOGLE_TOKEN=''
4 changes: 2 additions & 2 deletions bots/translateBot/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const http = axios.create({

export const botLogin = async (username, password) => {
try {
const request = await http.post('users/login', {
username: username,
const request = await http.post('users/login-with-email', {
email: username,
password: password
}, {
headers: {
Expand Down

0 comments on commit 3cd76ce

Please sign in to comment.