This commit is contained in:
2023-01-01 16:07:34 +01:00
parent 4e949bee90
commit da3b615779
3 changed files with 15 additions and 28 deletions

View File

@@ -1,15 +0,0 @@
FROM node:latest
WORKDIR /app
RUN apk add --no-cache --virtual .build-deps make gcc g++ python
COPY package.json ./
RUN npm install
COPY . .
RUN tsc --build
CMD node dist/index.js

View File

@@ -1,19 +1,20 @@
const robot = require('robotjs')
const execa = require('execa')
require('dotenv').config()
const { Client } = require('discord.js')
const colorette = require('colorette')
import robot from 'robotjs'
import {execa} from 'execa'
import 'dotenv/config'
import { Client } from 'discord.js'
import * as colorette from 'colorette'
const client = new Client({
intents: [
'Guilds',
'GuildMembers',
'GuildMessages',
]
intents: [
'Guilds',
'GuildMessages',
]
})
client.on('ready', () => {
console.log(colorette.bgGreen('Logged onto Discord!'))
console.log(colorette.bgGreen('Logged onto Discord!'))
execa('echo "Hello World!"')
})
execa('echo Hey!').then(process => console.log(process.stdout))
})
client.login(process.env.TOKEN)

View File

@@ -6,6 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"type": "module",
"keywords": [],
"author": "",
"license": "ISC",