Closed Panjkrc closed 4 years ago
Replaced if checks with .includes() function This makes code more compact, and should make it easier to add more file extension to the list.
.includes()
I use this way of doing it in my bot: https://github.com/Panjkrc/sambot/blob/master/index.js#L121
Changes will be deployed to production within the next week.
Replaced if checks with
.includes()
function This makes code more compact, and should make it easier to add more file extension to the list.I use this way of doing it in my bot: https://github.com/Panjkrc/sambot/blob/master/index.js#L121