-5

SyntaxError: Unexpected token (
The problem is in (bot). This part of the code:

let task = async (bot) => {

1 Answers1

4

Async functions are not supported by Node versions older than version 7.6.

You'll need to transpile your code (e.g. using Babel) to a version of JS that Node understands if you are using an older version.

Juan Araneta
  • 316
  • 1
  • 12