userinfo: untry temp
This commit is contained in:
		
							parent
							
								
									4737ac23d6
								
							
						
					
					
						commit
						0f7d87edee
					
				
					 1 changed files with 28 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -575,12 +575,12 @@ userinfo.callback = async function (msg, line) {
 | 
			
		|||
  }
 | 
			
		||||
 | 
			
		||||
  if (!member && id !== (msg.author?.id ?? msg.user?.id)) {
 | 
			
		||||
    try {
 | 
			
		||||
    //try {
 | 
			
		||||
    const clip = {
 | 
			
		||||
      is_clip: true,
 | 
			
		||||
      clip_created_at: new Date().toISOString(),
 | 
			
		||||
      clip_participant_ids: [id],
 | 
			
		||||
        application_id: hf.bot.application?.id,
 | 
			
		||||
      application: hf.bot.application?.id,
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    const video = await readFile(require.resolve("#root/data/clip.mp4"));
 | 
			
		||||
| 
						 | 
				
			
			@ -604,9 +604,9 @@ userinfo.callback = async function (msg, line) {
 | 
			
		|||
      is_thumbnail: true,
 | 
			
		||||
      ...clip,
 | 
			
		||||
    });
 | 
			
		||||
    } catch {
 | 
			
		||||
    //} catch {
 | 
			
		||||
    // noop
 | 
			
		||||
    }
 | 
			
		||||
    //}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue