1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 00:10:58 -05:00

Trim the trailing whitespaces

This commit is contained in:
toast-ts 2024-01-06 20:49:35 +11:00
parent 012f8d6eb2
commit cb5d0e31f7
4 changed files with 5 additions and 5 deletions

View File

@ -116,7 +116,7 @@ jobs:
core.setFailed('Failed to create combined branch - maybe a branch by that name already exists?'); core.setFailed('Failed to create combined branch - maybe a branch by that name already exists?');
return; return;
} }
let combinedPRs = []; let combinedPRs = [];
let mergeFailedPRs = []; let mergeFailedPRs = [];
for(const { branch, prString } of branchesAndPRStrings) { for(const { branch, prString } of branchesAndPRStrings) {
@ -134,7 +134,7 @@ jobs:
mergeFailedPRs.push(prString); mergeFailedPRs.push(prString);
} }
} }
console.log('Creating combined PR'); console.log('Creating combined PR');
const combinedPRsString = combinedPRs.join('\n'); const combinedPRsString = combinedPRs.join('\n');
let body = '✅ This PR was created by the Combine Dependabot PRs action by combining the following PRs:\n' + combinedPRsString; let body = '✅ This PR was created by the Combine Dependabot PRs action by combining the following PRs:\n' + combinedPRsString;

View File

@ -7,7 +7,7 @@ This is a repository for V3 revision that has been transitioned and rewritten fr
This revision took **4 months** (Late September to Mid December) working on and off to do literally everything that needed a rewrite so badly that it cannot be done in V2. This revision took **4 months** (Late September to Mid December) working on and off to do literally everything that needed a rewrite so badly that it cannot be done in V2.
**Q:** So what are the changes if it almost looks the same as V2? **Q:** So what are the changes if it almost looks the same as V2?
**A:** Here's the bullet points of the changes so far; **A:** Here's the bullet points of the changes so far;
- Reworked some of the files - Reworked some of the files
- Commands and events are now classes - Commands and events are now classes

View File

@ -1,7 +1,7 @@
import Discord from 'discord.js'; import Discord from 'discord.js';
import TClient from '../client.js'; import TClient from '../client.js';
export default class GuildMemberAdd { export default class GuildMemberAdd {
static async run(client:TClient, member:Discord.GuildMember){ static async run(client:TClient, member:Discord.GuildMember){
if (member.partial || member.guild?.id != client.config.dcServer.id) return; if (member.partial || member.guild?.id != client.config.dcServer.id) return;
const index = member.guild.memberCount; const index = member.guild.memberCount;
const suffix = (index=>{ const suffix = (index=>{

View File

@ -15,7 +15,7 @@ export default class FormatPlayer {
Days = Math.floor(Hours/24); Days = Math.floor(Hours/24);
Hours = Hours-Days*24; Hours = Hours-Days*24;
} }
return (Days > 0 ? Days+' d ':'')+(Hours > 0 ? Hours+' h ':'')+(Minutes > 0 ? Minutes+' m':'') return (Days > 0 ? Days+' d ':'')+(Hours > 0 ? Hours+' h ':'')+(Minutes > 0 ? Minutes+' m':'')
} }
static decoratePlayerIcons(player:FSPlayer) { static decoratePlayerIcons(player:FSPlayer) {