mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
ci: linting and subdirectories
This commit is contained in:
35
.github/workflows/linting.yml
vendored
Normal file
35
.github/workflows/linting.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Linting
|
||||
|
||||
on:
|
||||
# Trigger the workflow on push or pull request,
|
||||
# but only for the main branch
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
run-linters:
|
||||
name: Run linters
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
|
||||
# ESLint and Prettier must be in `package.json`
|
||||
- name: Install Node.js dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run linters
|
||||
uses: wearerequired/lint-action@v2
|
||||
with:
|
||||
eslint: true
|
||||
prettier: true
|
||||
@@ -1,4 +1,6 @@
|
||||
vinci bot
|
||||
## badges yes sir
|
||||
[](https://www.codefactor.io/repository/github/srizan10/vinci)
|
||||
# heres a roadmap
|
||||
|
||||
- ~~form to apply for the minecraft server~~ DONE!
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { commandModule, CommandType } = require('@sern/handler');
|
||||
import { publish } from "../src/plugins/publish";
|
||||
import { publish } from "../../src/plugins/publish";
|
||||
const attachment1 = 'A.png';
|
||||
|
||||
export default commandModule({
|
||||
@@ -1,6 +1,6 @@
|
||||
const { commandModule, CommandType } = require('@sern/handler');
|
||||
import axios from "axios";
|
||||
import { publish } from "../src/plugins/publish";
|
||||
import { publish } from "../../src/plugins/publish";
|
||||
|
||||
export default commandModule({
|
||||
name: 'chiste',
|
||||
@@ -12,5 +12,5 @@ export default commandModule({
|
||||
const jokeJSON = await axios(
|
||||
'https://v2.jokeapi.dev/joke/Programming,Miscellaneous,Spooky,Christmas?blacklistFlags=nsfw,religious,racist,sexist,explicit'
|
||||
).then((res) => res.data);
|
||||
ctx.reply({content: `${jokeJSON.joke || jokeJSON.setup}\n${jokeJSON.delivery || ""}`})
|
||||
ctx.reply({content: `${jokeJSON.joke || jokeJSON.setup}\n${jokeJSON.delivery || ""}`})
|
||||
}})
|
||||
@@ -1,7 +1,7 @@
|
||||
const { commandModule, CommandType } = require('@sern/handler');
|
||||
const { ActionRowBuilder, ButtonBuilder, ButtonStyle, ModalBuilder, EmbedBuilder, TextInputBuilder, TextInputStyle, InteractionType } = require('discord.js');
|
||||
import { publish } from "../src/plugins/publish";
|
||||
import { ownerOnly } from "../src/plugins/ownerOnly"
|
||||
import { publish } from "../../src/plugins/publish";
|
||||
import { ownerOnly } from "../../src/plugins/ownerOnly"
|
||||
|
||||
export default commandModule({
|
||||
type: CommandType.Modal,
|
||||
@@ -1,7 +1,7 @@
|
||||
const { commandModule, CommandType } = require('@sern/handler');
|
||||
const { ActionRowBuilder, ButtonBuilder, ButtonStyle, ModalBuilder, EmbedBuilder, TextInputBuilder, TextInputStyle, InteractionType } = require('discord.js');
|
||||
import { publish } from "../src/plugins/publish";
|
||||
import { ownerOnly } from "../src/plugins/ownerOnly"
|
||||
import { publish } from "../../src/plugins/publish";
|
||||
import { ownerOnly } from "../../src/plugins/ownerOnly"
|
||||
|
||||
|
||||
export default commandModule({
|
||||
@@ -1,5 +1,5 @@
|
||||
const { commandModule, CommandType } = require('@sern/handler');
|
||||
import { publish } from "../src/plugins/publish";
|
||||
import { publish } from "../../src/plugins/publish";
|
||||
|
||||
export default commandModule({
|
||||
name: 'ping',
|
||||
@@ -1,6 +1,6 @@
|
||||
const { commandModule, CommandType } = require('@sern/handler');
|
||||
import { publish } from "../src/plugins/publish";
|
||||
import { ownerOnly } from "../src/plugins/ownerOnly";
|
||||
import { publish } from "../../src/plugins/publish";
|
||||
import { ownerOnly } from "../../src/plugins/ownerOnly";
|
||||
import { ApplicationCommandOptionType, EmbedBuilder } from 'discord.js'
|
||||
|
||||
export default commandModule({
|
||||
@@ -1,6 +1,6 @@
|
||||
const { commandModule, CommandType } = require('@sern/handler');
|
||||
import { publish } from "../src/plugins/publish";
|
||||
import { ownerOnly } from "../src/plugins/ownerOnly";
|
||||
import { publish } from "../../src/plugins/publish";
|
||||
import { ownerOnly } from "../../src/plugins/ownerOnly";
|
||||
import { ApplicationCommandOptionType } from 'discord.js'
|
||||
|
||||
export default commandModule({
|
||||
Reference in New Issue
Block a user