mirror of
https://github.com/SrIzan10/discord-plays-pokemon.git
synced 2026-06-06 00:56:49 +00:00
yeah
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -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
|
||||
27
index.js
27
index.js
@@ -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)
|
||||
@@ -6,6 +6,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"type": "module",
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
|
||||
Reference in New Issue
Block a user