This commit is contained in:
derpystuff 2022-05-21 16:21:08 +02:00
parent 7195d43c74
commit 6173b085a3
26 changed files with 1112 additions and 91 deletions

22
labscore/paginator.js Normal file
View file

@ -0,0 +1,22 @@
const Paginator = require('detritus-pagination').PaginatorCluster
const paginators = {}
function createPaginator(client){
return new Paginator(client, {
// Maximum number of milliseconds for the bot to paginate
// It is recommended not to set this too high
// Defaults to 300000ms (5 minutes)
maxTime: 300000,
// Whether it should jump back to page 1 if the user tried to go past the last page
// Defaults to false
pageLoop: true,
// Whether a page number should be shown in embed footers
// If a string is passed as page, it will append the page number to the string
pageNumber: true
});
}
module.exports = {
createPaginator
}