Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ad-690] Add shutdown notice #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions lib/commands/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,18 @@ module.exports = (bot) => {
return;
}

return ctx.reply(createMessage(json), {
await ctx.reply(createMessage(json), {
parse_mode: 'markdown',
// reply_markup: {
// inline_keyboard: [
// [
// {
// text: `Open ${getDisplayType(json.type)}`,
// url: `${
// json.url
// }?utm_source=telegram&utm_medium=songwhipbot&utm_campaign=convert-link`
// }
// ]
// ]
// }
});

const shutdownNotice = [
'Thank you for using Songwhip’s Telegram bot.',
'As of March 1st, 2024 the Telegram bot will be shutting down.',
'You can still continue to create and share free music links by visiting Songwhip’s <a href="https://songwhip.com/create">website</a>!',
].join('\n');

return ctx.reply(shutdownNotice, {
parse_mode: 'HTML',
});
};
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"telegraf": "^3.30.1"
},
"devDependencies": {
"@theorchard/songwhip-events": "^2.3.3",
"@theorchard/songwhip-events": "2.3.3",
"@types/micro": "^7.3.3",
"babel-eslint": "^7.2.3",
"eslint": "^4.4.1",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# yarn lockfile v1


"@theorchard/songwhip-events@^2.3.3":
"@theorchard/[email protected]":
version "2.3.3"
resolved "https://npm.pkg.github.com/download/@theorchard/songwhip-events/2.3.3/bd7815be94a73fd22b64ea6213a2d56fa1eded68d028268e6fb79883574c72bc#b6b0f5c6eabb85bca319ec40da36ec3f43c42c21"
resolved "https://npm.pkg.github.com/download/@theorchard/songwhip-events/2.3.3/b6b0f5c6eabb85bca319ec40da36ec3f43c42c21#b6b0f5c6eabb85bca319ec40da36ec3f43c42c21"
integrity sha512-iwydoZcVDWYqj1tOuSS+isbp+EhiVi/reqtkeTZ8qLGhU4ollypvtjqQYGt3Og7RWpdz0/ABuLAVlUQsAwcoDA==
dependencies:
debug "^4.3.1"
Expand Down