2024-08-23 20:51:52 +08:00
import { _ as s , r as a , o as l , c as r , b as e , d as t , a as o , e as i } from "./app-SlpTmndF.js" ; const c = { } , d = e ( "h2" , { id : "installation" , tabindex : "-1" } , [ e ( "a" , { class : "header-anchor" , href : "#installation" } , [ e ( "span" , null , [ e ( "strong" , null , "Installation" ) ] ) ] ) ] , - 1 ) , p = e ( "h3" , { id : "conventional-deployment" , tabindex : "-1" } , [ e ( "a" , { class : "header-anchor" , href : "#conventional-deployment" } , [ e ( "span" , null , [ e ( "strong" , null , "Conventional deployment" ) ] ) ] ) ] , - 1 ) , u = { href : "https://git-scm.com/download/" , target : "_blank" , rel : "noopener noreferrer" } , h = e ( "code" , null , "Git" , - 1 ) , m = { href : "https://www.python.org/downloads/release/python-31010/" , target : "_blank" , rel : "noopener noreferrer" } , v = e ( "code" , null , "Python3.10+" , - 1 ) , y = i ( ` <div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token comment"># Clone the project locally, --depth=1 to reduce the size of the cloned repository, this project updates depend on Git</span>
< / c o d e > < / p r e > < d i v c l a s s = " l i n e - n u m b e r s " a r i a - h i d d e n = " t r u e " > < d i v c l a s s = " l i n e - n u m b e r " > < / d i v > < d i v c l a s s = " l i n e - n u m b e r " > < / d i v > < d i v c l a s s = " l i n e - n u m b e r " > < / d i v > < d i v c l a s s = " l i n e - n u m b e r " > < / d i v > < d i v c l a s s = " l i n e - n u m b e r " > < / d i v > < d i v c l a s s = " l i n e - n u m b e r " > < / d i v > < d i v c l a s s = " l i n e - n u m b e r " > < / d i v > < d i v c l a s s = " l i n e - n u m b e r " > < / d i v > < / d i v > < / d i v > < d i v c l a s s = " h i n t - c o n t a i n e r t i p " > < p c l a s s = " h i n t - c o n t a i n e r - t i t l e " > T i p s < / p > < p > R e c o m m e n d e d t o u s e < c o d e > v e n v < / c o d e > t o r u n L i t e y u k i t o a v o i d d e p e n d e n c y c o n f l i c t s , y o u c a n u s e < c o d e > p y t h o n - m v e n v . v e n v < / c o d e > t o c r e a t e a v i r t u a l e n v i r o n m e n t , a n d t h e n u s e < c o d e > . v e n v \ \ S c r i p t s \ \ a c t i v a t e < / c o d e > t o a c t i v a t e t h e v i r t u a l e n v i r o n m e n t ( u s e < c o d e > s o u r c e . v e n v / b i n / a c t i v a t e < / c o d e > t o a c t i v a t e o n L i n u x ) < / p > < / d i v > < h 3 i d = " u s e - d o c k e r " t a b i n d e x = " - 1 " > < a c l a s s = " h e a d e r - a n c h o r " h r e f = " # u s e - d o c k e r " > < s p a n > < s t r o n g > U s e d o c k e r < / s t r o n g > < / s p a n > < / a > < / h 3 > ` , 3 ) , g = { h r e f : " h t t p s : / / d o c s . d o c k e r . c o m / g e t - d o c k e r / " , t a r g e t : " _ b l a n k " , r e l : " n o o p e n e r n o r e f e r r e r " } , k = e ( " c o d e " , n u l l , " D o c k e r " , - 1 ) , _ = e ( " l i " , n u l l , [ t ( " C l o n e p r o j e c t r e p o " ) , e ( " c o d e " , n u l l , " g i t c l o n e h t t p s : / / g i t h u b . c o m / L i t e y u k i S t u d i o / L i t e y u k i B o t - - d e p t h = 1 " ) ] , - 1 ) , f = e ( " l i " , n u l l , [ t ( " c h a n g e d i r e c t o r y " ) , e ( " c o d e " , n u l l , " c d L i t e y u k i B o t " ) ] , - 1 ) , b = e ( " l i " , n u l l , [ t ( " b u i l d i m a g e w i t h " ) , e ( " c o d e " , n u l l , " d o c k e r b u i l d - t l i t e y u k i b o t . " ) ] , - 1 ) , w = e ( " l i " , n u l l , [ t ( " s t a r t c o n t a i n e r " ) , e ( " c o d e " , n u l l , " d o c k e r r u n - p 2 0 2 1 6 : 2 0 2 1 6 - v $ ( p w d ) : / l i t e y u k i b o t - v $ ( p w d ) / . c a c h e : / r o o t / . c a c h e l i t e y u k i b o t " ) ] , - 1 ) , L = i ( ' < d i v c l a s s = " h i n t - c o n t a i n e r t i p " > < p c l a s s = " h i n t - c o n t a i n e r - t i t l e " > T i p s < / p > < p > F o r W i n d o w s , p l e a s e u s e t h e a b s o l u t e p r o j e c t d i r e c t o r y < c o d e > / p a t h / t o / L i t e y u k i B o t < / c o d e > i n s t e a d o f $ ( p w d ) < / p > < p > I f y o u h a v e c h a n g e d t h e p o r t n u m b e r , r e p l a c e < c o d e > 2 0 2 1 6 < / c o d e > i n < c o d e > 2 0 2 1 6 : 2 0 2 1 6 < / c o d e > w i t h y o u r p o r t n u m b e r < / p > < / d i v > < h 3 i d = " u s e - t r s s - s c r i p t s " t a b i n d e x = " - 1 " > < a c l a s s = " h e a d e r - a n c h o r " h r e f = " # u s e - t r s s - s c r i p t s " > < s p a n > < s t r o n g > U s e T R S S S c r i p t s < / s t r o n g > < / s p a n > < / a > < / h 3 > ' , 2 ) , S = { h r e f : " h t t p s : / / t i m e r a i n s t a r s k y . g i t h u b . i o / T R S S _ L i t e y u k i / " , t a r g e t : " _ b l a n k " , r e l : " n o o p e n e r n o r e f e r r e r " } , x = i ( ' < h 2 i d = " d e v i c e - r e q u i r e m e n t s " t a b i n d e x = " - 1 " > < a c l a s s = " h e a d e r - a n c h o r " h r e f = " # d e v i c e - r e q u i r e m e n t s " > < s p a n > < s t r o n g > D e v i c e r e q u i r e m e n t s < / s t r o n g > < / s p a n > < / a > < / h 2 > < u l > < l i > M i n i m u m W i n d o w s s y s t e m v e r s i o n : < c o d e > W i n d o w s 1 0 + < / c o d e > / < c o d e > W i n d o w s S e r v e r 2 0 1 9 + < / c o d e > < / l i > < l i > L i n u x s y s t e m s n e e d t o s u p p o r t P y t h o n 3 . 1 0 + , w i t h < c o d e > U b u n t u 2 0 . 0 4 + < / c o d e > r e c o m m e n d e d < / l i > < l i > C P U : < c o d e > 1 v C P U < / c o d e > a n d m o r e ( B o t i s m u l t i p r o c e s s e s , t h e m o r e c o r e s , t h e b e t t e r t h e p e r f o r m a n c e ) < / l i > < l i > M e m o r y : W i t h o u t o t h e r p l u g i n s , t h e B o t w i l l o c c u p y < c o d e > 3 0 0 ~ 5 0 0 M B < / c o d e > , i n c l u d i n g p r o c e s s e s l i k e < c o d e > c h r o m i u m < / c o d e > a n d < c o d e > n o d e < / c o d e > . T h e m e m o r y o c c u p i e d b y o t h e r p l u g i n s d e p e n d s o n t h e s p e c i f i c p l u g i n s , a n d i t i s r e c o m m e n d e d t o h a v e m o r e t h a n < c o d e > 1 G B < / c o d e > . < / l i > < l i > S t o r a g e : A t l e a s t < c o d e > 1 G B < / c o d e > o f s p a c e i s r e q u i r e d . < / l i > < / u l > < d i v c l a s s = " h i n t - c o n t a i n e r w a r n i n g " > < p c l a s s = " h i n t - c o n t a i n e r - t i t l e " > W a r n i n g < / p > < p > I f t h e r e a r e m u l t i p l e e n v i r o n m e n t s o n t h e d e v i c e , p l e a s e u s e < c o d e > p a t h / t o / p y t h o n - m p i p i n s t a l l - r r e q u i r e m e n t s . t x t < / c o d e > t o i n s t a l l d e p e n d e n c i e s , w h e r e < c o d e > p a t h / t o / p y t h o n < / c o d e > i s t h e p a t h t o y o u r P y t h o n e x e c u t a b l e . < / p > < / d i v > < d i v c l a s s = " h i n t - c o n t a i n e r w a r n i n g " > < p c l a s s = " h i n t - c o n t a i n e r - t i t l e " > W a r n i n g < / p > < p > T h e u p d a t e f e a t u r e o f L i t e y u k i d e p e n d s o n G i t . I f y o u h a v e n o t i n s t a l l e d G i t a n d d i r e c t l y d o w n l o a d t h e s o u r c e c o d e t o r u n , y o u w i l l n o t b e a b l e t o u s e t h e u p d a t e f e a t u r e . < / p > < / d i v > < h 4 i d = " f o r - o t h e r - i s s u e s - p l e a s e - g o - t o - q - a " t a b i n d e x = " - 1 " > < a c l a s s = " h e a d e r - a n c h o r " h r e f = " # f o r - o t h e r - i s s u e s - p l e a s e - g o - t o - q - a " > < s p a n > F o r o t h e r i s s u e s , p l e a s e g o t o < a h r e f = " / d e p l o y m e n t / f a n d q " > Q & a m p ; A < / a > < / s p a n > < / a > < / h 4 > ' , 5 ) ; f u n c t i o n T ( I , B ) { c o n s t n = a ( " E x t e r n a l L i n k I c o n " ) ; r e t u r n l ( ) , r ( " d i v " , n u l l , [ d , p , e ( " o l " , n u l l , [ e ( " l i " , n u l l , [ t ( " I n s t a l l " ) , e ( " a " , u , [ h , o ( n ) ] ) , t ( " a n d " ) , e ( " a " , m , [ v , o ( n ) ] ) , t ( " e n v i r o n m e n t " ) ] ) ] ) , y , e ( " o l " , n u l l , [ e ( " l i " , n u l l , [ t ( " I n s t a l l " ) , e ( " a " , g , [ k , o ( n ) ] ) ] ) , _ , f , b , w ] ) , L , e ( " p " , n u l l , [ e ( " a " , S , [ t ( " T R S S _ L i t e y u k i L i t e y u k i B o t m a n a g e s c r i p t " ) , o ( n ) ] ) , t ( " , T h i s f e a t u r e i s s u p p o r t e d b y T R S S a n d i s n o t a n o f f i c i a l f e a t u r e o f L i t e y u k i B o t . I t i s r e c o m m e n d e d t o u s e A r c h L i n u x . " ) ] ) , x ] ) } c o n s t C = s ( c , [ [ " r e n d e r " , T ] , [ " _ _ f i l e " , "