Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Cleaned up bot
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedegeofroy committed Aug 18, 2024
1 parent 3a9c13d commit bec98e5
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 43 deletions.
Binary file removed public/images/dash/cover.jpg
Binary file not shown.
Binary file removed public/javascripts/dash/cover.jpg
Binary file not shown.
8 changes: 0 additions & 8 deletions public/stylesheets/style.css

This file was deleted.

3 changes: 2 additions & 1 deletion routes/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ function handleQuery(col,byDate,byName){
if(byName){
res = res.sort((a,b)=>sortableText(b.name) > sortableText(a.name) ? -1 : 0)
}
// devlog(res)
return res
}

function devlog(v) {
if (process.env.develop == 'true') {
console.log(v)
} else {
// push to telegram notifications
}
}

Expand Down
11 changes: 10 additions & 1 deletion routes/dashBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,16 @@ router.post(`/hook`, (req, res) => {
sendMessage(
{
chat_id: chat_id,
text: 'Доступные команды:\n/start - Запуск бота\n/help - Справка',
text: 'Доступные команды:\n/start - Запуск бота\n/report — Баг репорт\n/help - Справка',
},
'sendMessage',
token
);
} else if (text === '/report') {
sendMessage(
{
chat_id: chat_id,
text: 'Извините, я не понимаю эту команду.',
},
'sendMessage',
token
Expand Down
15 changes: 0 additions & 15 deletions views/dash/app.pug

This file was deleted.

6 changes: 0 additions & 6 deletions views/error.pug

This file was deleted.

5 changes: 0 additions & 5 deletions views/index.pug

This file was deleted.

7 changes: 0 additions & 7 deletions views/layout.pug

This file was deleted.

0 comments on commit bec98e5

Please sign in to comment.