1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 04:11:00 -04:00
This commit is contained in:
toast-ts 2022-11-27 11:47:31 -08:00
commit f1359240b9
12 changed files with 8 additions and 3338 deletions

7
.gitignore vendored
View File

@ -2,8 +2,7 @@
node_modules/
package-lock.json
.ncurc.json
# TypeScript stuff
dist/
# Bot stuff
src/database/MPDB.dat
src/commands/disabled
src/database/
src/tokens.json
src/Toast-Testbot.config.json

View File

@ -1,11 +1,2 @@
# Daggerbot-TS
TypeScript-based Daggerbot converted from JavaScript at [SpaceManBuzz/DaggerBot-](https://github.com/SpaceManBuzz/DaggerBot-)
### Todo list:
- [x] Development
- [x] Prepare repository
- [x] Install TypeScript dependencies and tools
- [x] Convert JS files to TS one by one
- [x] Plz work
- [x] Production
- [x] Deploy bot

View File

@ -1,58 +0,0 @@
{
"embedColor": "#0052cf",
"embedColorGreen": "#57f287",
"embedColorYellow": "#ffea00",
"embedColorRed": "#e62c3b",
"embedColorBCA": "#ff69b4",
"LRSstart": 1661236321433,
"botSwitches": {
"registerCommands": true,
"commands": false,
"logs": true,
"automod": false,
"mpstats": false,
"mpstatsDebug": false,
"autores": false
},
"eval": {
"allowed": true,
"whitelist": [
"190407856527376384",
"615761944154210305"
]
},
"mainServer": {
"id": "549114074273677314",
"staffRoles": [
"admin",
"dcmod",
"mpmanager",
"mpmod",
"vtcmanager",
"vtcstaff",
"ytmod"
],
"roles": {
"admin": "987660171767595028",
"bottech": "904015815291056188",
"dcmod": "987660171767595028",
"mpmanager": "987660171767595028",
"mpmod": "904015815291056188",
"vtcmanager": "987660171767595028",
"vtcstaff": "904014418860453929",
"ytmod": "904014418860453929",
"mphelper": "904014418860453929",
"mpplayer": "904014418860453929",
"vtcmember": "904014418860453929"
},
"channels": {
"console": "904192878140608563",
"errors": "904192878140608563",
"bot_status": "904192878140608563",
"thismeanswar": "904192878140608563",
"logs": "904192878140608563",
"welcome": "904192878140608563",
"botcommands": "904192878140608563"
}
}
}

View File

@ -31,8 +31,7 @@ export class TClient extends Client {
intents: [
GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildBans, GatewayIntentBits.GuildInvites,
GatewayIntentBits.GuildPresences, GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.DirectMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages
GatewayIntentBits.GuildPresences, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages
],
partials: [
Partials.Channel,
@ -327,7 +326,7 @@ class punishments extends Database {
const embedw = new this.client.embed().setColor(this.client.config.embedColor).setTitle(`Case #${warnData.id}: Warn`).setDescription(`${member.user.tag}\n<@${member.user.id}>\n(\`${member.user.id}\`)`).addFields(
{name: 'Reason', value: `\`${reason || 'Reason unspecified'}\``}
)
if (moderator !== '795443537356521502') {return embedw}
if (moderator !== client.user.id) {return embedw}
}
case 'mute':
const muteData:Punishment={type, id: this.createId(), member: member.user.id, moderator, time: now};
@ -353,7 +352,7 @@ class punishments extends Database {
const embedm = new this.client.embed().setColor(this.client.config.embedColor).setTitle(`Case #${muteData.id}: Mute`).setDescription(`${member.user.tag}\n<@${member.user.id}>\n(\`${member.user.id}\`)`).addFields(
{name: 'Reason', value: `\`${reason || 'Reason unspecified'}\``},
{name: 'Duration', value: `${this.client.formatTime(timeInMillis, 4, {longNames: true, commas: true})}`})
if (moderator !== '795443537356521502') {return embedm};
if (moderator !== client.user.id) {return embedm};
}
}
}
@ -451,4 +450,4 @@ class bonkCount extends Database {
getUser(userid: string){
return this._content[userid] || 0;
}
}
}

File diff suppressed because one or more lines are too long

View File

@ -1,79 +0,0 @@
[
"fuck",
"fck",
"fů",
"fuk",
"fúck",
"fùck",
"fûck",
"fück",
"fūck",
"fůck",
"fűck",
"fùçk",
"fûćk",
"fucking",
"fųck",
"shit",
"shite",
"sht",
"shìt",
"shít",
"shît",
"shït",
"shīt",
"shįt",
"shıt",
"shlt",
"whore",
"pelotudo",
"boludo",
"nigger",
"nigga",
"nigs",
"niggas@",
"cunt",
"cnut",
"bitch",
"dick",
"pussy",
"asshole",
"b1tch",
"b!tch",
"blowjob",
"cock",
"c0ck",
"retard",
"fag",
"faggot",
"tits",
"boobs",
"dick",
"sex",
"porn",
"bjob",
"stfu",
"",
"­",
"͏",
"͏",
"؜",
"",
"",
"",
"",
"",
"",
"",
"stfu",
"ass",
"kkk",
"<@1011334031478100099>",
"<@468835415093411861>",
"asf",
"af",
"wtf",
"piss",
"pissed",
"pussys"
]

View File

@ -1,30 +0,0 @@
{
"696085982201643090": 3,
"532662366354276352": 2849,
"178941218510602240": 9,
"615761944154210305": 9,
"141304507249197057": 14,
"190407856527376384": 9,
"711527768185372742": 1,
"716355511552966737": 5,
"593696856165449749": 17,
"824043915539513406": 20,
"771892617599516674": 10,
"889665445915926588": 1,
"488683638310043677": 1027,
"475037861725339649": 1,
"389237487094071337": 1,
"859313171964887140": 1,
"301350210926280704": 2,
"695323013813633076": 3,
"458688902102908928": 2,
"606595407769894995": 1,
"734703851558535188": 2,
"544215307972247553": 2,
"506022868157595648": 1,
"468837263577579524": 3,
"743212818467258468": 1,
"954092707213619221": 1,
"292726506654793730": 1,
"392699530912727041": 1
}

View File

@ -1 +0,0 @@
[[0,674965],[1,675885],[2,676639],[3,677245],[4,677609],[5,678188],[6,678916],[7,679465],[8,679938],[9,680540],[10,681614],[11,682079],[12,682780],[13,683187],[14,683547],[15,683900],[16,684592],[17,685466],[18,686078],[19,686481],[20,676748],[21,676968],[22,677427],[23,677592],[24,677894],[25,678116],[26,676785],[27,677570],[28,678491],[29,679137],[30,679818],[31,680094],[32,680417],[33,680783],[34,681563],[35,682070],[36,682670],[37,683504],[38,684078],[39,684383],[40,684692],[41,685448],[42,685664],[43,685994],[44,686366],[45,687118],[46,687626],[47,688008],[48,688754],[49,688942],[50,689107],[51,689472],[52,690143],[53,690644],[54,691124],[55,692196],[56,692624],[57,692906],[58,693456],[59,693952],[60,694586],[61,695070],[62,696163],[63,696564],[64,697315],[65,698548],[66,699138],[67,699558],[68,700307],[69,701063],[70,701394],[71,701868],[72,702453],[73,702917],[76,705187],[77,705243],[78,705488],[79,705961],[80,706585],[81,707467],[82,708212],[83,709024],[84,709773],[85,710256],[86,710980],[87,711220],[88,711428],[89,711840],[90,712595],[91,713063],[92,713340],[93,713959],[94,714222],[95,662929]]

View File

@ -1,114 +0,0 @@
[
{
"type": "kick",
"id": 1,
"member": "1009270415241252864",
"moderator": "141304507249197057",
"time": 1662289354828,
"reason": "failing to change inappropriate \"about me\" section on multiple occasions"
},
{
"type": "ban",
"id": 2,
"member": "991510617997443152",
"moderator": "190407856527376384",
"time": 1662485667322,
"reason": "compromised acc"
},
{
"type": "warn",
"id": 3,
"member": "598995859388104784",
"moderator": "532662366354276352",
"time": 1662900975329,
"reason": "being rude to a moderator"
},
{
"type": "ban",
"id": 4,
"member": "542134892327338035",
"moderator": "301350210926280704",
"time": 1663485351678,
"reason": "trying to post a discord link in multiple channels"
},
{
"type": "warn",
"id": 5,
"member": "870330666187907132",
"moderator": "141304507249197057",
"time": 1663594515726,
"reason": "inappropriate reactions"
},
{
"type": "ban",
"id": 6,
"member": "1030414094265761802",
"moderator": "141304507249197057",
"time": 1665779240168,
"reason": "cryptoscammer"
},
{
"type": "warn",
"id": 7,
"member": "934366726282416168",
"moderator": "593696856165449749",
"time": 1667146446817,
"reason": "Trying to put DC invite links everywhere (PG Server)"
},
{
"type": "kick",
"id": 8,
"member": "248226483967885312",
"moderator": "532662366354276352",
"time": 1667505431215,
"reason": "innapropiate pfp"
},
{
"type": "kick",
"id": 9,
"member": "872074877039947778",
"moderator": "301350210926280704",
"time": 1667505683756,
"reason": "inappropriate name and pfp"
},
{
"type": "ban",
"id": 10,
"member": "138377490132500480",
"moderator": "532662366354276352",
"time": 1668120578282,
"reason": "very innapropiate pfp"
},
{
"type": "kick",
"id": 11,
"member": "502208091002109953",
"moderator": "301350210926280704",
"time": 1668123798741,
"reason": "inappropriate status and about me"
},
{
"type": "kick",
"id": 12,
"member": "846431793715871749",
"moderator": "532662366354276352",
"time": 1668331244780,
"reason": "innapropiate profile picture"
},
{
"type": "ban",
"id": 13,
"member": "985447227755495425",
"moderator": "141304507249197057",
"time": 1668526989338,
"reason": "steam scammer"
},
{
"type": "ban",
"id": 14,
"member": "1041929757916405791",
"moderator": "593696856165449749",
"time": 1668851141637,
"reason": "Steam scammer"
}
]

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ import {Punishment, UserLevels} from './typings/interfaces';
client.on('ready', async()=>{
client.guilds.cache.forEach(async(e)=>{await e.members.fetch()});
setInterval(async()=>{
client.user.setPresence({activities: [{ name: 'Slash commands!', type: 1, url: 'https://www.youtube.com/watch?v=eO9YZsJmjlM' }], status: 'online'});
client.user.setPresence({activities: [{ name: 'Slash commands!', type: 1, url: 'https://www.youtube.com/watch?v=GtL1huin9EE' }], status: 'online'});
// Playing: 0, Streaming (Requires YT/Twitch URL to work): 1, Listening to: 2, Watching: 3, Competing in: 5
}, 60000);
if (client.config.botSwitches.registerCommands) client.application.commands.set(client.registry).catch((e)=>{console.log(`Couldn't register slash commands: ${e}`)})

View File

@ -1,6 +0,0 @@
{
"token_main": "OTI5NzU1ODczOTQzODk2MTM2.Ydr8og.A4qCaMBinZ-9Wv16Zid7x5NmxjQ",
"token_beta": "OTM0NDU5NjQzNzA5Nzc5OTg4.YewZXA.R7W4r7vqsNnxEvMqKvsQWkBj-5Y",
"token_toast": "OTMxMTUwNTQxNDkxNDI5Mzc2.G2_YHE.BfVwlL1ijqQ1inQjIJUPF27Nf_NlPK7cB80UhQ",
"token_tae": "Nzc5NDA0NjM3MjAzMDcxMDY3.Gp6qw1.kSBKGY9Xeq4mMlhBp-pmZV-D3ZAOfOvk7-YQ9Y"
}