SyntaxError: Unexpected token (
The problem is in (bot). This part of the code:
let task = async (bot) => {
SyntaxError: Unexpected token (
The problem is in (bot). This part of the code:
let task = async (bot) => {
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.