Skip to content

Commit

Permalink
removed unnecessary methods from ScheduledAnnouncement
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Jul 9, 2022
1 parent 54aaba6 commit c643f2d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
24 changes: 0 additions & 24 deletions src/bot/announcement.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,30 +255,6 @@ export default class ScheduledAnnouncement {
return true;
}

/**
* @summary convenience method for updating Rescraper
* @param {Rescraper} rescraper rescraper instance
*/
setRescraper(rescraper) {
this.rescraper = rescraper;
}

/**
* @summary convenience method for updating the Room
* @param {Room} room the room to announce in
*/
setRoom(room) {
this._room = room;
}

/**
* @summary convenience method for updating the Election
* @param {Election} election election to announce for
*/
setElection(election) {
this._election = election;
}

/**
* @summary formats date as a cron expression (UTC)
* @param {string | number | Date} date date to format
Expand Down
1 change: 0 additions & 1 deletion src/bot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ use defaults ${defaultChatNotSet}`
// Start rescraper utility, and initialise announcement cron jobs
const rescraper = new Rescraper(config, client, room, elections, election);
const announcement = new Announcement(config, room, election, rescraper);
announcement.setRescraper(rescraper);

const initStatus = announcement.initAll();

Expand Down

0 comments on commit c643f2d

Please sign in to comment.