Skip to content

Bot Settings

The config.bot block in src/config.js controls identity, prefix, session management, locale, and public-mode policy.

js
bot: {
  name:         'EchoFox',
  prefix:       '.',
  adminPrefix:  '$',
  sessionName:  '@session',
  timezone:     'Asia/Kolkata',
  language:     'en',
  public:       true,
},
FieldTypeDefaultNotes
namestring'EchoFox'Display name shown in help, menu, notifications
prefixstring'.'User command prefix
adminPrefixstring'$'Admin-only command prefix (admins gated via config.admins)
sessionNamestring'@session'Subdirectory under auth path
timezoneIANA tz'Asia/Kolkata'Used for timestamp formatting in logs + replies
languageISO 639-1'en'Default locale for replies (per-group overrides via groupSettings)
publicbooleantrueIf false, only admins (config.admins) can run commands

Public vs private mode

In public mode (default), any user can run commands. In private mode, only JIDs listed in config.admins can. Useful for a personal bot that you don't want others using.

js
bot: { public: false },
admins: ['1234567890@s.whatsapp.net'],

Prefix conflicts

If prefix and adminPrefix would BOTH match a message (e.g. they're both single characters and the user types both), the admin prefix wins. Non-admins who use $ get "🔒 The $ prefix is reserved for admins."

Per-group prefix override

config.groupSettings supports per-group prefix:

js
groupSettings: {
  '120363012345678901@g.us': {
    prefix: '!',          // this group uses ! instead of .
    public: false,        // and is admin-only despite global public:true
  },
},

Released under the AGPL-3.0 License.