File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const info = {
1111} ;
1212
1313export default async function ( msg : Message ) {
14- if ( ! / ^ c a t \b / i. test ( msg . body ) ) return ;
14+ if ( ! / ^ c a t $ / i. test ( msg . body ) ) return ;
1515
1616 const response = cat [ Math . floor ( Math . random ( ) * cat . length ) ] ;
1717 if ( response . length === 0 ) return await msg . reply ( "Cat is silent..." ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const info = {
1111} ;
1212
1313export default async function ( msg : Message ) {
14- if ( ! / ^ d y k \b / i. test ( msg . body ) ) return ;
14+ if ( ! / ^ d y k $ / i. test ( msg . body ) ) return ;
1515
1616 const response = dyk [ Math . floor ( Math . random ( ) * dyk . length ) ] ;
1717 if ( response . length === 0 ) return await msg . reply ( "I dont know..." ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export const info = {
1010} ;
1111
1212export default async function ( msg : Message ) {
13- if ( ! / ^ f o r k \b / i. test ( msg . body ) ) return ;
13+ if ( ! / ^ f o r k $ / i. test ( msg . body ) ) return ;
1414
1515 await msg . reply (
1616 "Fork this bot at https://github.com/mrepol742/project-canis or contribute to the project by submitting issues or pull requests."
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const info = {
1111} ;
1212
1313export default async function ( msg : Message ) {
14- if ( ! / ^ j o k e \b / i. test ( msg . body ) ) return ;
14+ if ( ! / ^ j o k e $ / i. test ( msg . body ) ) return ;
1515
1616 const response = joke [ Math . floor ( Math . random ( ) * joke . length ) ] ;
1717 if ( response . length === 0 ) return await msg . reply ( "I don't have any jokes right now..." ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const info = {
1212} ;
1313
1414export default async function ( msg : Message ) {
15- if ( ! / ^ l o g o u t \b / i. test ( msg . body ) ) return ;
15+ if ( ! / ^ l o g o u t $ / i. test ( msg . body ) ) return ;
1616
1717 try {
1818 await client . logout ( ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ export const info = {
1515} ;
1616
1717export default async function ( msg : Message ) {
18+ if ( ! / ^ p i c k u p l i n e $ / i. test ( msg . body ) ) return ;
19+
1820 await axios
1921 . get ( `https://api.popcat.xyz/pickuplines` )
2022 . then ( async ( response ) => {
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export const info = {
1111} ;
1212
1313export default function ( msg : Message ) {
14- if ( ! / ^ p i n g \b / i. test ( msg . body ) ) return ;
14+ if ( ! / ^ p i n g $ / i. test ( msg . body ) ) return ;
15+
1516 msg . reply ( "pong" ) ;
1617}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const info = {
1111} ;
1212
1313export default async function ( msg : Message ) {
14- if ( ! / ^ q u i z \b / i. test ( msg . body ) ) return ;
14+ if ( ! / ^ q u i z $ / i. test ( msg . body ) ) return ;
1515
1616 const response = quiz [ Math . floor ( Math . random ( ) * quiz . length ) ] ;
1717 if ( response . length === 0 )
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ export const info = {
1414} ;
1515
1616export default async function ( msg : Message ) {
17+ if ( ! / ^ r a n d o m c o l o r $ / i. test ( msg . body ) ) return ;
18+
1719 await axios
1820 . get ( `https://api.popcat.xyz/randomcolor` )
1921 . then ( async ( response ) => {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const info = {
1212} ;
1313
1414export default async function ( msg : Message ) {
15- if ( ! / ^ r e s t a r t \b / i. test ( msg . body ) ) return ;
15+ if ( ! / ^ r e s t a r t $ / i. test ( msg . body ) ) return ;
1616 await msg . react ( "🔄" ) ;
1717
1818 const tempDir = "./.temp" ;
You can’t perform that action at this time.
0 commit comments