How create bot programatically?

#1

If I am copy bot to data folder and have error

13:40:42.596 BotService Cannot mount bot “tes7”. Make sure it exists on the filesytem or the database. [Error, Incorrect environment undefined]

What need to register in the database?

#2

Make sure that the bot is listed in data/global/workspaces.json under bots. Let me know if that works.

#3

Also what version are you using?

#4

Sorry, this is custom module error :frowning: Copy/paste to data folder work fine.