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",
757
757
}
758
758
}
759
759
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
-
791
760
// Check the passive lists AFTER all other checks.
792
761
if ( GetPermLevel ( member ) >= ServerPermLevel . TrialModerator )
793
762
return ;
Original file line number Diff line number Diff line change @@ -227,9 +227,6 @@ public class ConfigJson
227
227
[ JsonProperty ( "gitListDirectory" ) ]
228
228
public string GitListDirectory { get ; private set ; }
229
229
230
- [ JsonProperty ( "feedbackHubChannelId" ) ]
231
- public ulong FeedbackHubChannelId { get ; private set ; } = 0 ;
232
-
233
230
[ JsonProperty ( "dmLogChannelId" ) ]
234
231
public ulong DmLogChannelId { get ; private set ; } = 0 ;
235
232
Original file line number Diff line number Diff line change 259
259
"ref" : " main" ,
260
260
"workflowId" : " append-lists-txt.yml"
261
261
},
262
- "feedbackHubChannelId" : 865734819995582464 ,
263
262
"everyoneFilter" : true ,
264
263
"logChannels" : {
265
264
"mod" : {
You can’t perform that action at this time.
0 commit comments