mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 07:56:58 +01:00
finish migrating to gitlab
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
in {
|
in {
|
||||||
devShells."${system}" = {
|
devShells."${system}" = {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [ bun nodejs deno ];
|
packages = with pkgs; [ bun biome ];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
echo Loaded the qweribot dev shell
|
echo Loaded the qweribot dev shell
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export default new Command({
|
|||||||
const selection = namedRedeems.get(args[0]);
|
const selection = namedRedeems.get(args[0]);
|
||||||
if (!selection) {
|
if (!selection) {
|
||||||
await sendMessage(
|
await sendMessage(
|
||||||
`Redeem ${args[0]} doesn't exist. The internal names for redeems are here: https://github.com/qwerinope/qweribot#point-redeems`,
|
`Redeem ${args[0]} doesn't exist. The internal names for redeems are here: https://gitlab.com/qwerinope/qweribot#point-redeems`,
|
||||||
msg.messageId,
|
msg.messageId,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default new Command({
|
|||||||
const selection = namedRedeems.get(args[0]);
|
const selection = namedRedeems.get(args[0]);
|
||||||
if (!selection) {
|
if (!selection) {
|
||||||
await sendMessage(
|
await sendMessage(
|
||||||
`Redeem ${args[0]} doesn't exist. The internal names for redeems are here: https://github.com/qwerinope/qweribot#point-redeems`,
|
`Redeem ${args[0]} doesn't exist. The internal names for redeems are here: https://gitlab.com/qwerinope/qweribot#point-redeems`,
|
||||||
msg.messageId,
|
msg.messageId,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default new Command({
|
|||||||
const args = parseCommandArgs(msg.messageText);
|
const args = parseCommandArgs(msg.messageText);
|
||||||
if (!args[0]) {
|
if (!args[0]) {
|
||||||
await sendMessage(
|
await sendMessage(
|
||||||
`A full list of cheers can be found here: https://github.com/qwerinope/qweribot#cheers`,
|
`A full list of cheers can be found here: https://gitlab.com/qwerinope/qweribot#cheers`,
|
||||||
msg.messageId,
|
msg.messageId,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default new Command({
|
|||||||
const args = parseCommandArgs(msg.messageText);
|
const args = parseCommandArgs(msg.messageText);
|
||||||
if (!args[0]) {
|
if (!args[0]) {
|
||||||
await sendMessage(
|
await sendMessage(
|
||||||
`A full list of commands can be found here: https://github.com/qwerinope/qweribot#commands-1`,
|
`A full list of commands can be found here: https://gitlab.com/qwerinope/qweribot#commands-1`,
|
||||||
msg.messageId,
|
msg.messageId,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ async function parseChatMessage(msg: EventSubChannelChatMessageEvent) {
|
|||||||
) {
|
) {
|
||||||
// The msg.sourceMessageId checks if the message is from shared chat. shared chat should be ignored
|
// The msg.sourceMessageId checks if the message is from shared chat. shared chat should be ignored
|
||||||
const message = await sendMessage(
|
const message = await sendMessage(
|
||||||
`Welcome ${user?.displayName}. Please note: This chat has PvP, if you get timed out that's part of the qwerinope experience. You have 10 minutes of invincibility. A full list of commands and items can be found here: https://github.com/qwerinope/qweribot/#qweribot`,
|
`Welcome ${user?.displayName}. Please note: This chat has PvP, if you get timed out that's part of the qwerinope experience. You have 10 minutes of invincibility. A full list of commands and items can be found here: https://gitlab.com/qwerinope/qweribot/#qweribot`,
|
||||||
);
|
);
|
||||||
await redis.set(`user:${user?.id}:haschatted`, "1");
|
await redis.set(`user:${user?.id}:haschatted`, "1");
|
||||||
await redis.set(`user:${user?.id}:welcomemessageid`, message.id);
|
await redis.set(`user:${user?.id}:welcomemessageid`, message.id);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ eventSub.onUserWhisperMessage(chatterId, async (msg) => {
|
|||||||
if (!msg.messageText.startsWith(commandPrefix)) {
|
if (!msg.messageText.startsWith(commandPrefix)) {
|
||||||
await whisper(
|
await whisper(
|
||||||
msg.senderUserId,
|
msg.senderUserId,
|
||||||
`Whisper commands start with '${commandPrefix}'. All whisper commands can be found here: https://github.com/qwerinope/qweribot#whisper-commands-1`,
|
`Whisper commands start with '${commandPrefix}'. All whisper commands can be found here: https://gitlab.com/qwerinope/qweribot#whisper-commands-1`,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ eventSub.onUserWhisperMessage(chatterId, async (msg) => {
|
|||||||
case "h":
|
case "h":
|
||||||
await whisper(
|
await whisper(
|
||||||
msg.senderUserId,
|
msg.senderUserId,
|
||||||
`All whisper commands can be found here: https://github.com/qwerinope/qweribot#whisper-commands-1`,
|
`All whisper commands can be found here: https://gitlab.com/qwerinope/qweribot#whisper-commands-1`,
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case "ghostwhisper":
|
case "ghostwhisper":
|
||||||
|
|||||||
Reference in New Issue
Block a user