FAQ - xnamed/isida4 GitHub Wiki

F.A.Q.

Q#1: Why does bot keep constantly reconnecting?

A#1: There are to possible causes:

  1. Resource is not specified in bot's JID in config.py
  2. You are using OpenFire server. In this case you'll have to add to server's config the line xmpp.client.idle=-1

Q#2: Why does the bot not recognize me as its owner in the conference?

A#2: Because the bot should see your jid. To do this, the bot must have administrator privileges, or the conference should not be anonymous.

Q#3: How to get help on commands?

A#3: All bot commands have built-in help. The help is called by the help <command>

Q#4: What kind of incomprehensible symbols in the help to the teams?

A#4: The following conventions are used:

  • [ ] they do not have mandatory parameters. For example: aaa [bbb ]ccc implies that aaa bbb ccc and aaa ccc are possible
  • | separates options options. For example: aaa bbb|ccc ddd implies that aaa bbb ddd and aaa ccc ddd are possible
  • < > required parameters.

Q#5: How to give the team a command?

A#5: Bot takes commands in the following form:

  • in the conference: <Prefix> Command
  • in the conference: <Bot_Nick> <:|,> [Prefix] Command
  • in private: [Prefix] Command

By default, commands have the prefix "_" before the text. To change the prefix in a particular conference, you can use the prefix command to write it to the bot in private, or by applying to the nickname in the conference.

Q#6: What are the limitations of the bot commands?

A#6: The bot has 11 access levels, depending on which certain commands are available or not available:

  • -1 - Ignored participant
  • 0 - Minimal access
  • 1 - At least visitor|none
  • 2 - At least visitor|member
  • 3 - At least participant|none
  • 4 - At least participant|member
  • 5 - At least moderator|none
  • 6 - At least moderator|member
  • 7 - At least moderator|admin
  • 8 - At least moderator|owner
  • 9 - The owner of the bot

Q#7: The bot answers in English! How to make Russian?

A#7: The bot determines the language of the client of the user and tries to communicate with him in this language. Change the language in your client's preferences. For users whose language is not defined, the default language is used, which can be set with the set_locale en|ru|ua command, after which the bot needs to be restarted. Also, the default language is used to translate the bot help and some functions in which the localization definition of the user is not available. At the moment, available Russian, Ukrainian and English localization. Instead of other languages, the default localization is used.

Q#8: I can not connect to the PostgreSQL database

A#8: When you try to execute:

psql -U isidabot isidabot -f pgsql.schema

we get the error:

psql: FATAL: Peer authentication failed for user "isidabot"

It is necessary in the settings of PosgtreSQL to add localhost to the list of trusted hosts for connection, or to create a rule for the bot database. To do this, in /etc/postgres/<version>/pg_hba.conf you need to register:

# TYPE DATABASE USER IP-ADDRESS METHOD
local isidabot isidabot 127.0.0.1/32 password

to access the database by password, or

# TYPE DATABASE USER IP-ADDRESS METHOD
local all all trust

for local access without a password.

More details about the setting can be read here .

⚠️ **GitHub.com Fallback** ⚠️