File tree Expand file tree Collapse file tree 3 files changed +0
-35
lines changed
Expand file tree Collapse file tree 3 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -757,37 +757,6 @@ await LogChannelHelper.LogMessageAsync("messages",
757757 }
758758 }
759759
760- // feedback hub text channel
761- if ( ! isAnEdit && message . Channel . Id == Program . cfgjson . FeedbackHubChannelId )
762- {
763- var captures = bold_rx . Match ( message . Content ) . Groups [ 1 ] . Captures ;
764-
765- if ( captures is null || captures . Count == 0 || ( ! message . Content . Contains ( "aka.ms/" ) && ! message . Content . Contains ( "feedback-hub:" ) ) )
766- {
767- if ( GetPermLevel ( member ) >= ServerPermLevel . TrialModerator )
768- {
769- return ;
770- }
771-
772- await message . DeleteAsync ( ) ;
773- var msg = await message . Channel . SendMessageAsync ( $ "{ Program . cfgjson . Emoji . Error } { message . Author . Mention } , please read the pinned messages in this channel and follow the message format given.") ;
774- await Task . Delay ( 5000 ) ;
775- await msg . DeleteAsync ( ) ;
776- }
777- else
778- {
779- var title = captures [ 0 ] . Value ;
780-
781- if ( title . Length > 100 )
782- title = StringHelpers . Truncate ( title , 100 , false ) ;
783-
784- await message . BaseMessage . CreateThreadAsync ( title , DiscordAutoArchiveDuration . Week , "Automatically creating feedback hub thread." ) ;
785-
786- await Task . Delay ( 2000 ) ;
787- await message . BaseMessage . ModifyEmbedSuppressionAsync ( true ) ;
788- }
789- }
790-
791760 // Check the passive lists AFTER all other checks.
792761 if ( GetPermLevel ( member ) >= ServerPermLevel . TrialModerator )
793762 return ;
Original file line number Diff line number Diff line change @@ -227,9 +227,6 @@ public class ConfigJson
227227 [ JsonProperty ( "gitListDirectory" ) ]
228228 public string GitListDirectory { get ; private set ; }
229229
230- [ JsonProperty ( "feedbackHubChannelId" ) ]
231- public ulong FeedbackHubChannelId { get ; private set ; } = 0 ;
232-
233230 [ JsonProperty ( "dmLogChannelId" ) ]
234231 public ulong DmLogChannelId { get ; private set ; } = 0 ;
235232
Original file line number Diff line number Diff line change 259259 "ref" : " main" ,
260260 "workflowId" : " append-lists-txt.yml"
261261 },
262- "feedbackHubChannelId" : 865734819995582464 ,
263262 "everyoneFilter" : true ,
264263 "logChannels" : {
265264 "mod" : {
You can’t perform that action at this time.
0 commit comments