FAQ - xnamed/isida4 GitHub Wiki
A#1: There are to possible causes:
- Resource is not specified in bot's JID in config.py
- You are using OpenFire server. In this case you'll have to add to server's config the line xmpp.client.idle=-1
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.
A#3: All bot commands have built-in help. The help is called by the help <command>
A#4: The following conventions are used:
-
[ ]
they do not have mandatory parameters. For example:aaa [bbb ]ccc
implies thataaa bbb ccc
andaaa ccc
are possible -
|
separates options options. For example:aaa bbb|ccc ddd
implies thataaa bbb ddd
andaaa ccc ddd
are possible -
< >
required parameters.
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.
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
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.
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 .