Commit 25449cc3 authored by Tim Kinnane's avatar Tim Kinnane
Browse files

Merge branch 'develop' into feature/driver-tests

# Conflicts:
#	src/lib/driver.ts
parents a12bed71 7cf42aa0
......@@ -197,11 +197,12 @@ export async function setup () {
// End of API setup usage
await logout()
// Assign bot user as livechat agent
// Enable Livechat and assign bot as agent
try {
const socket = new Socket()
await socket.login({ username: apiUser.username, password: apiUser.password })
await'saveSetting', 'Livechat_enabled', true)
await'livechat:addAgent', botUser.username)
console.log('Bot user assigned as livechat agent')
await socket.close()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment