mirror of
https://github.com/DarthKilroy/Spot.git
synced 2026-02-04 02:26:48 +00:00
Add create jira bug
This commit is contained in:
parent
6c8cf194a7
commit
1a7822ea69
13 changed files with 418 additions and 97 deletions
13
utils/bind-events.ts
Normal file
13
utils/bind-events.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { Events } from "discord.js";
|
||||
import { client } from "../bot";
|
||||
import { onGuildMemberAdd } from "../events/guild-member-add";
|
||||
import { onInteractionCreate } from "../events/interaction-create";
|
||||
import { onMessageCreate } from "../events/message-create";
|
||||
import { onReady } from "../events/ready";
|
||||
|
||||
export const bindToEvents = () => {
|
||||
client.on(Events.GuildMemberAdd, onGuildMemberAdd);
|
||||
client.on(Events.MessageCreate, onMessageCreate);
|
||||
client.on(Events.ClientReady, onReady);
|
||||
client.on(Events.InteractionCreate, onInteractionCreate)
|
||||
}
|
||||
46
utils/jira.ts
Normal file
46
utils/jira.ts
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
export const getJiraToken = () => {
|
||||
const token = Buffer.from(`${process.env.jiramail}:${process.env.jiratoken}`).toString('base64')
|
||||
return `Basic ${token}`
|
||||
}
|
||||
|
||||
export const frequencies = [
|
||||
{
|
||||
label: "Everytime (everyone)",
|
||||
value: "10023"
|
||||
},
|
||||
{
|
||||
label: "Sometimes (everyone)",
|
||||
value: "10024"
|
||||
},
|
||||
{
|
||||
label: "Everytime (some)",
|
||||
value: "10025"
|
||||
},
|
||||
{
|
||||
label: "Everyime/Always (one user)",
|
||||
value: "10027"
|
||||
}
|
||||
]
|
||||
|
||||
export const severites = [
|
||||
{
|
||||
label: "Unusable",
|
||||
value: "10028"
|
||||
},
|
||||
{
|
||||
label: "Gray screen",
|
||||
value: "10030"
|
||||
}
|
||||
, {
|
||||
label: "Data",
|
||||
value: "10032"
|
||||
},
|
||||
{
|
||||
label: "Malfunctioning",
|
||||
value: "10033"
|
||||
},
|
||||
{
|
||||
label: "Layout Issue",
|
||||
value: "10034"
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue